This boundary condition provides a waveAlpha condition. This sets the phase fraction to that specified by a superposition of wave models. All the parameters are looked up from the corresponding velocity condition. More...


Public Member Functions | |
| TypeName ("waveAlpha") | |
| Runtime type information. More... | |
| waveAlphaFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &) | |
| Construct from patch and internal field. More... | |
| waveAlphaFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &) | |
| Construct from patch, internal field and dictionary. More... | |
| waveAlphaFvPatchScalarField (const waveAlphaFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &) | |
| Construct by mapping given mixedTypeFvPatchField onto a new patch. More... | |
| waveAlphaFvPatchScalarField (const waveAlphaFvPatchScalarField &) | |
| Construct as copy. More... | |
| virtual tmp< fvPatchScalarField > | clone () const |
| Construct and return a clone. More... | |
| waveAlphaFvPatchScalarField (const waveAlphaFvPatchScalarField &, const DimensionedField< scalar, volMesh > &) | |
| Construct as copy setting internal field reference. More... | |
| virtual tmp< fvPatchScalarField > | clone (const DimensionedField< scalar, volMesh > &iF) const |
| Construct and return a clone setting internal field reference. More... | |
| bool | liquid () const |
| Access the liquid flag. More... | |
| tmp< scalarField > | alpha () const |
| Return the current modelled phase fraction field. More... | |
| virtual void | updateCoeffs () |
| Update the coefficients associated with the patch field. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
This boundary condition provides a waveAlpha condition. This sets the phase fraction to that specified by a superposition of wave models. All the parameters are looked up from the corresponding velocity condition.
| Property | Description | Req'd? | Default |
|---|---|---|---|
U | name of the velocity field | no | U |
liquid | is the alpha field that of the liquid | no | true |
inletOutlet | does the condition behave like inletOutlet | no | true |
Example of the boundary condition specification:
<patchName>
{
type waveAlpha;
U U;
inletOutlet true;
}
Definition at line 91 of file waveAlphaFvPatchScalarField.H.
| waveAlphaFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct from patch and internal field.
Definition at line 36 of file waveAlphaFvPatchScalarField.C.
References Foam::Zero.
Referenced by waveAlphaFvPatchScalarField::clone(), and waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField().

| waveAlphaFvPatchScalarField | ( | const fvPatch & | p, |
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const dictionary & | dict | ||
| ) |
Construct from patch, internal field and dictionary.
Definition at line 53 of file waveAlphaFvPatchScalarField.C.
References dictionary::found(), scalarField(), fvPatch::size(), waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField(), and Foam::Zero.

| waveAlphaFvPatchScalarField | ( | const waveAlphaFvPatchScalarField & | ptf, |
| const fvPatch & | p, | ||
| const DimensionedField< scalar, volMesh > & | iF, | ||
| const fvPatchFieldMapper & | mapper | ||
| ) |
Construct by mapping given mixedTypeFvPatchField onto a new patch.
Definition at line 80 of file waveAlphaFvPatchScalarField.C.
References waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField().

| waveAlphaFvPatchScalarField | ( | const waveAlphaFvPatchScalarField & | ptf | ) |
Construct as copy.
Definition at line 95 of file waveAlphaFvPatchScalarField.C.
References waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField().

| waveAlphaFvPatchScalarField | ( | const waveAlphaFvPatchScalarField & | ptf, |
| const DimensionedField< scalar, volMesh > & | iF | ||
| ) |
Construct as copy setting internal field reference.
Definition at line 106 of file waveAlphaFvPatchScalarField.C.
| TypeName | ( | "waveAlpha" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 150 of file waveAlphaFvPatchScalarField.H.
References waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField().

|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 167 of file waveAlphaFvPatchScalarField.H.
References waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField().

|
inline |
Access the liquid flag.
Definition at line 183 of file waveAlphaFvPatchScalarField.H.
References waveAlphaFvPatchScalarField::alpha(), waveAlphaFvPatchScalarField::updateCoeffs(), and waveAlphaFvPatchScalarField::write().

| Foam::tmp< Foam::scalarField > alpha | ( | ) | const |
Return the current modelled phase fraction field.
Definition at line 120 of file waveAlphaFvPatchScalarField.C.
References waveSuperposition::height(), Foam::levelSetFraction(), and waveVelocityFvPatchVectorField::waves().
Referenced by waveAlphaFvPatchScalarField::liquid(), and waveAlphaFvPatchScalarField::updateCoeffs().


|
virtual |
Update the coefficients associated with the patch field.
Definition at line 142 of file waveAlphaFvPatchScalarField.C.
References waveAlphaFvPatchScalarField::alpha(), Foam::pos0(), and waveAlphaFvPatchScalarField::write().
Referenced by waveAlphaFvPatchScalarField::liquid().


|
virtual |
Write.
Definition at line 168 of file waveAlphaFvPatchScalarField.C.
References Foam::makePatchTypeField(), and Foam::blockMeshTools::write().
Referenced by waveAlphaFvPatchScalarField::liquid(), and waveAlphaFvPatchScalarField::updateCoeffs().


1.8.13