This boundary condition provides a first order fixed-value condition for a given scalar field to model time-dependent adsorption-desoprtion processes to be used with the interfaceOxideRate
mass model.
More...
Public Types | |
enum | ddtSchemeType { tsEuler, tsCrankNicolson, tsBackward } |
This boundary condition provides a first order fixed-value condition for a given scalar field to model time-dependent adsorption-desoprtion processes to be used with the interfaceOxideRate
mass model.
where
![]() | = | Concentration at cell |
![]() | = | Concentration at wall |
![]() | = | Adsorption rate constant [1/s] |
![]() | = | Desorption rate constant [1/s] |
![]() | = | Weight function |
![]() | = | Max concentration at wall |
<patchName> { // Mandatory entries type timeVaryingMassSorption; kbas <scalar>; max <scalar>; // Optional entries kdes <scalar>; // Inherited entries ... }
where the entries mean:
Property | Description | Type | Reqd | Deflt |
---|---|---|---|---|
type | Type name: timeVaryingAdsorption | word | yes | - |
kbas | Adsorption rate constant | scalar | yes | - |
max | Maximum concentation at wall | scalar | yes | - |
kdes | Desorption rate constant | scalar | no | 0 |
The inherited entries are elaborated in:
Definition at line 154 of file timeVaryingMassSorptionFvPatchScalarField.H.
enum ddtSchemeType |
Enumerator | |
---|---|
tsEuler | |
tsCrankNicolson | |
tsBackward |
Definition at line 163 of file timeVaryingMassSorptionFvPatchScalarField.H.
timeVaryingMassSorptionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 56 of file timeVaryingMassSorptionFvPatchScalarField.C.
Referenced by timeVaryingMassSorptionFvPatchScalarField::clone().
timeVaryingMassSorptionFvPatchScalarField | ( | const fvPatch & | p, |
const DimensionedField< scalar, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Definition at line 70 of file timeVaryingMassSorptionFvPatchScalarField.C.
References dict, p, and Foam::Zero.
timeVaryingMassSorptionFvPatchScalarField | ( | const timeVaryingMassSorptionFvPatchScalarField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< scalar, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Definition at line 97 of file timeVaryingMassSorptionFvPatchScalarField.C.
Definition at line 113 of file timeVaryingMassSorptionFvPatchScalarField.C.
timeVaryingMassSorptionFvPatchScalarField | ( | const timeVaryingMassSorptionFvPatchScalarField & | ptf, |
const DimensionedField< scalar, volMesh > & | iF | ||
) |
Definition at line 126 of file timeVaryingMassSorptionFvPatchScalarField.C.
TypeName | ( | "timeVaryingMassSorption" | ) |
|
inlinevirtual |
Definition at line 228 of file timeVaryingMassSorptionFvPatchScalarField.H.
References timeVaryingMassSorptionFvPatchScalarField::timeVaryingMassSorptionFvPatchScalarField().
|
inlinevirtual |
Definition at line 245 of file timeVaryingMassSorptionFvPatchScalarField.H.
References timeVaryingMassSorptionFvPatchScalarField::timeVaryingMassSorptionFvPatchScalarField().
|
virtual |
Definition at line 141 of file timeVaryingMassSorptionFvPatchScalarField.C.
|
virtual |
Definition at line 150 of file timeVaryingMassSorptionFvPatchScalarField.C.
Foam::tmp< Foam::scalarField > source | ( | ) | const |
Definition at line 160 of file timeVaryingMassSorptionFvPatchScalarField.C.
References Foam::cp(), Foam::max(), tmp::New(), Foam::foamVersion::patch, and Foam::Zero.
|
virtual |
Definition at line 176 of file timeVaryingMassSorptionFvPatchScalarField.C.
References Foam::constant::universal::c, Foam::cp(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, fld, Foam::max(), Foam::nl, Foam::operator==(), Foam::foamVersion::patch, and tmp::ref().
|
virtual |
Definition at line 252 of file timeVaryingMassSorptionFvPatchScalarField.C.
References os(), fvPatchField::write(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.