interfaceCompressionFvPatchScalarField Class Reference

Applies interface-compression to the phase-fraction distribution at the patch by setting the phase-fraction to 0 if it is below 0.5, otherwise to 1. More...

Inheritance diagram for interfaceCompressionFvPatchScalarField:
Collaboration diagram for interfaceCompressionFvPatchScalarField:

Public Member Functions

 TypeName ("interfaceCompression")
 Runtime type information. More...
 
 interfaceCompressionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 interfaceCompressionFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 interfaceCompressionFvPatchScalarField (const interfaceCompressionFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 interfaceCompressionFvPatchScalarField (const interfaceCompressionFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 interfaceCompressionFvPatchScalarField (const interfaceCompressionFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

Applies interface-compression to the phase-fraction distribution at the patch by setting the phase-fraction to 0 if it is below 0.5, otherwise to 1.

This approach is useful to avoid unphysical "bleed" of the lighter phase along the surface in regions of high shear adjacent to the surface which is at a shallow angle to the interface.

See also
Foam::fixedValueFvPatchScalarField
Source files

Definition at line 57 of file interfaceCompressionFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ interfaceCompressionFvPatchScalarField() [1/5]

interfaceCompressionFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Construct from patch and internal field.

Definition at line 34 of file interfaceCompressionFvPatchScalarField.C.

Referenced by interfaceCompressionFvPatchScalarField::clone(), and interfaceCompressionFvPatchScalarField::interfaceCompressionFvPatchScalarField().

Here is the caller graph for this function:

◆ interfaceCompressionFvPatchScalarField() [2/5]

interfaceCompressionFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 45 of file interfaceCompressionFvPatchScalarField.C.

References Foam::evaluate(), and interfaceCompressionFvPatchScalarField::interfaceCompressionFvPatchScalarField().

Here is the call graph for this function:

◆ interfaceCompressionFvPatchScalarField() [3/5]

interfaceCompressionFvPatchScalarField ( const interfaceCompressionFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given.

interfaceCompressionFvPatchScalarField onto a new patch

Definition at line 59 of file interfaceCompressionFvPatchScalarField.C.

References interfaceCompressionFvPatchScalarField::interfaceCompressionFvPatchScalarField().

Here is the call graph for this function:

◆ interfaceCompressionFvPatchScalarField() [4/5]

Disallow copy without setting internal field reference.

◆ interfaceCompressionFvPatchScalarField() [5/5]

Copy constructor setting internal field reference.

Definition at line 72 of file interfaceCompressionFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "interfaceCompression"  )

Runtime type information.

◆ clone()

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 110 of file interfaceCompressionFvPatchScalarField.H.

References interfaceCompressionFvPatchScalarField::interfaceCompressionFvPatchScalarField(), interfaceCompressionFvPatchScalarField::updateCoeffs(), and interfaceCompressionFvPatchScalarField::write().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 83 of file interfaceCompressionFvPatchScalarField.C.

References Foam::operator==(), Foam::pos0(), and interfaceCompressionFvPatchScalarField::write().

Referenced by interfaceCompressionFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 97 of file interfaceCompressionFvPatchScalarField.C.

References Foam::makePatchTypeField(), fvPatchField< Type >::write(), and Foam::writeEntry().

Referenced by interfaceCompressionFvPatchScalarField::clone(), and interfaceCompressionFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: