Applies semi-implicit source within a specified region for Type
, where <Type>=Scalar/Vector/SphericalTensor/SymmTensor/Tensor
. The injection rate coefficients are specified as pairs of Su-Sp coefficients, i.e.:
More...
Public Types | |
enum | volumeModeType { vmAbsolute, vmSpecific } |
Public Member Functions | |
TypeName ("SemiImplicitSource") | |
SemiImplicitSource (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
const volumeModeType & | volumeMode () const |
volumeModeType & | volumeMode () |
virtual void | addSup (fvMatrix< Type > &eqn, const label fieldi) |
virtual void | addSup (const volScalarField &rho, fvMatrix< Type > &eqn, const label fieldi) |
virtual bool | read (const dictionary &dict) |
Static Public Attributes | |
static const Enum< volumeModeType > | volumeModeTypeNames_ |
Protected Member Functions | |
void | setFieldData (const dictionary &dict) |
Protected Attributes | |
volumeModeType | volumeMode_ |
scalar | VDash_ |
PtrList< Function1< Type > > | Su_ |
PtrList< Function1< scalar > > | Sp_ |
Applies semi-implicit source within a specified region for Type
, where <Type>=Scalar/Vector/SphericalTensor/SymmTensor/Tensor
. The injection rate coefficients are specified as pairs of Su-Sp coefficients, i.e.:
where
![]() | = | net source for field 'x' |
![]() | = | explicit source contribution |
![]() | = | linearised implicit contribution |
constant/fvOptions
: <Type>SemiImplicitSource1 { // Mandatory entries (unmodifiable) type <Type>SemiImplicitSource; // Mandatory entries (runtime modifiable) volumeMode <volumeModeType>; injectionRateSuSp { k (30.7 0); epsilon (1.5 0); // The injectionRate can also be specified as a Function1 // by having dictionaries for the field entries instead k { // Time-ramp from 0 to 30.7 at time 5 Su table ( (0 0.0) (5 30.7) ); Sp 0.0; } epsilon { Su 1.5; Sp 0.0; } } // Mandatory/Optional (inherited) entries ... }
where the entries mean:
Property | Description | Type | Reqd | Dflt |
---|---|---|---|---|
type | Type name: <Type>SemiImplicitSource | word | yes | - |
volumeMode | Volume mode type | word | yes | - |
injectionRateSuSp | Injection rate settings | dictionary | yes | - |
The inherited entries are elaborated in:
Options for the volumeMode
entry:
absolute | Values are given as \<quantity\> specific | Values are given as \<quantity\>/m3
Definition at line 165 of file SemiImplicitSource.H.
enum volumeModeType |
Enumerator | |
---|---|
vmAbsolute | |
vmSpecific |
Definition at line 189 of file SemiImplicitSource.H.
SemiImplicitSource | ( | const word & | name, |
const word & | modelType, | ||
const dictionary & | dict, | ||
const fvMesh & | mesh | ||
) |
Definition at line 106 of file SemiImplicitSource.C.
References dict, and Foam::blockMeshTools::read().
|
protected |
Definition at line 45 of file SemiImplicitSource.C.
References Foam::BitOps::count(), dict, Tuple2::first(), Tuple2::second(), and dictionary::set().
TypeName | ( | "SemiImplicitSource" | ) |
|
inline |
Definition at line 27 of file SemiImplicitSourceI.H.
|
inline |
Definition at line 35 of file SemiImplicitSourceI.H.
|
virtual |
Definition at line 125 of file SemiImplicitSource.C.
References Foam::expressions::patchExpr::debug, fvMatrix::dimensions(), Foam::dimVolume, Foam::endl(), Foam::Info, psi, fvMatrix::psi(), Sp, Su, Foam::fam::SuSp(), and Foam::Zero.
|
virtual |
Definition at line 180 of file SemiImplicitSource.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), and Foam::Info.
|
virtual |
Definition at line 197 of file SemiImplicitSource.C.
References dict, and Foam::blockMeshTools::read().
|
static |
Definition at line 196 of file SemiImplicitSource.H.
|
protected |
Definition at line 204 of file SemiImplicitSource.H.
|
protected |
Definition at line 207 of file SemiImplicitSource.H.
Definition at line 210 of file SemiImplicitSource.H.
Definition at line 211 of file SemiImplicitSource.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.