waveAlphaFvPatchScalarField: Write liquid flag
Resolves bug report https://bugs.openfoam.org/view.php?id=2734
This commit is contained in:
@ -58,8 +58,8 @@ Foam::waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField
|
||||
:
|
||||
mixedFvPatchScalarField(p, iF),
|
||||
UName_(dict.lookupOrDefault<word>("U", "U")),
|
||||
liquid_(dict.lookupOrDefault<bool>("liquid", true)),
|
||||
inletOutlet_(dict.lookupOrDefault<bool>("inletOutlet", true))
|
||||
liquid_(dict.lookupOrDefault<Switch>("liquid", true)),
|
||||
inletOutlet_(dict.lookupOrDefault<Switch>("inletOutlet", true))
|
||||
{
|
||||
if (dict.found("value"))
|
||||
{
|
||||
@ -171,7 +171,8 @@ void Foam::waveAlphaFvPatchScalarField::write
|
||||
{
|
||||
mixedFvPatchScalarField::write(os);
|
||||
writeEntryIfDifferent<word>(os, "U", "U", UName_);
|
||||
writeEntryIfDifferent<bool>(os, "inletOutlet", true, inletOutlet_);
|
||||
writeEntryIfDifferent<Switch>(os, "inletOutlet", true, inletOutlet_);
|
||||
writeEntryIfDifferent<Switch>(os, "liquid", true, inletOutlet_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -79,14 +79,14 @@ class waveAlphaFvPatchScalarField
|
||||
word UName_;
|
||||
|
||||
//- Is this alpha field that of the liquid under the wave?
|
||||
const bool liquid_;
|
||||
const Switch liquid_;
|
||||
|
||||
//- Act as an inlet/outlet patch? If false, the alpha field will be set
|
||||
// by the wave model even during outflow. This may apply the wave model
|
||||
// more accurately, but it might also be unstable. If true, the alpha
|
||||
// boundary condition will be zero gradient when the flow reverses, as
|
||||
// is usual.
|
||||
const bool inletOutlet_;
|
||||
const Switch inletOutlet_;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user