LaplacePressureLagrangianScalarFieldSource Class Reference

This source condition sets the values of the pressure to that of the carrier plus an amount caused by the effect of the surface tension on a spherical droplet or bubble. More...

Inheritance diagram for LaplacePressureLagrangianScalarFieldSource:
Collaboration diagram for LaplacePressureLagrangianScalarFieldSource:

Public Member Functions

 TypeName ("LaplacePressure")
 Runtime type information. More...
 
 LaplacePressureLagrangianScalarFieldSource (const regIOobject &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 LaplacePressureLagrangianScalarFieldSource (const LaplacePressureLagrangianScalarFieldSource &, const regIOobject &)
 Copy constructor setting the internal field reference. More...
 
virtual autoPtr< LagrangianScalarFieldSource > clone (const regIOobject &iIo) const
 Construct and return a clone setting the internal field reference. More...
 
virtual ~LaplacePressureLagrangianScalarFieldSource ()
 Destructor. More...
 
virtual tmp< LagrangianSubScalarFieldvalue (const LagrangianInjection &, const LagrangianSubMesh &) const
 Return the value for an instantaneous injection. More...
 
virtual tmp< LagrangianSubScalarFieldvalue (const LagrangianSubMesh &) const
 Return the value without a model. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This source condition sets the values of the pressure to that of the carrier plus an amount caused by the effect of the surface tension on a spherical droplet or bubble.

Note that for now, the surface tension is an input parameter. This is likely to change as more surface-tension-dependent models are introduced and it becomes necessary to centralise the specification of the surface tension modelling. For now, this serves as a proof of concept that the pressure of the particles can differ from that of the carrier.

Usage
Property Description Required? Default
sigma The surface tension coefficient yes

Example specification:

    <LagrangianModelName>
    {
        type            LaplacePressure;
        sigma           0.07 [N/m];
    }
Source files

Definition at line 82 of file LaplacePressureLagrangianScalarFieldSource.H.

Constructor & Destructor Documentation

◆ LaplacePressureLagrangianScalarFieldSource() [1/2]

Construct from internal field and dictionary.

Definition at line 33 of file LaplacePressureLagrangianScalarFieldSource.C.

Referenced by LaplacePressureLagrangianScalarFieldSource::clone().

Here is the caller graph for this function:

◆ LaplacePressureLagrangianScalarFieldSource() [2/2]

Copy constructor setting the internal field reference.

Definition at line 46 of file LaplacePressureLagrangianScalarFieldSource.C.

◆ ~LaplacePressureLagrangianScalarFieldSource()

Member Function Documentation

◆ TypeName()

TypeName ( "LaplacePressure"  )

Runtime type information.

◆ clone()

virtual autoPtr<LagrangianScalarFieldSource> clone ( const regIOobject iIo) const
inlinevirtual

Construct and return a clone setting the internal field reference.

Definition at line 118 of file LaplacePressureLagrangianScalarFieldSource.H.

References LaplacePressureLagrangianScalarFieldSource::LaplacePressureLagrangianScalarFieldSource().

Here is the call graph for this function:

◆ value() [1/2]

Foam::tmp< Foam::LagrangianSubScalarField > value ( const LagrangianInjection injection,
const LagrangianSubMesh subMesh 
) const
virtual

Return the value for an instantaneous injection.

Definition at line 69 of file LaplacePressureLagrangianScalarFieldSource.C.

◆ value() [2/2]

Foam::tmp< Foam::LagrangianSubScalarField > value ( const LagrangianSubMesh subMesh) const
virtual

Return the value without a model.

Definition at line 82 of file LaplacePressureLagrangianScalarFieldSource.C.

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 93 of file LaplacePressureLagrangianScalarFieldSource.C.

References Foam::vtkWriteOps::write(), and Foam::writeEntry().

Here is the call graph for this function:

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