mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Standardized the selection of required and optional fields in BCs, fvOptions, functionObjects etc.
In most boundary conditions, fvOptions etc. required and optional fields
to be looked-up from the objectRegistry are selected by setting the
keyword corresponding to the standard field name in the BC etc. to the
appropriate name in the objectRegistry. Usually a default is provided
with sets the field name to the keyword name, e.g. in the
totalPressureFvPatchScalarField the velocity is selected by setting the
keyword 'U' to the appropriate name which defaults to 'U':
Property | Description | Required | Default value
U | velocity field name | no | U
phi | flux field name | no | phi
.
.
.
However, in some BCs and functionObjects and many fvOptions another
convention is used in which the field name keyword is appended by 'Name'
e.g.
Property | Description | Required | Default value
pName | pressure field name | no | p
UName | velocity field name | no | U
This difference in convention is unnecessary and confusing, hinders code
and dictionary reuse and complicates code maintenance. In this commit
the appended 'Name' is removed from the field selection keywords
standardizing OpenFOAM on the first convention above.
This commit is contained in:
@ -47,9 +47,9 @@ Description
|
|||||||
\heading Patch usage
|
\heading Patch usage
|
||||||
|
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
pName | Pressure field name | no | p
|
p | Pressure field name | no | p
|
||||||
psiName | Compressibility field name | no | thermo:psi
|
psi | Compressibility field name | no | thermo:psi
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
Example of the boundary condition specification:
|
Example of the boundary condition specification:
|
||||||
|
|||||||
@ -77,7 +77,7 @@ Foam::solidBodyMotionFvMesh::solidBodyMotionFvMesh(const IOobject& io)
|
|||||||
),
|
),
|
||||||
pointIDs_(),
|
pointIDs_(),
|
||||||
moveAllCells_(false),
|
moveAllCells_(false),
|
||||||
UName_(dynamicMeshCoeffs_.lookupOrDefault<word>("UName", "U"))
|
UName_(dynamicMeshCoeffs_.lookupOrDefault<word>("U", "U"))
|
||||||
{
|
{
|
||||||
if (undisplacedPoints_.size() != nPoints())
|
if (undisplacedPoints_.size() != nPoints())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,8 +34,8 @@ Description
|
|||||||
|
|
||||||
For a mass-based flux:
|
For a mass-based flux:
|
||||||
- the flow rate should be provided in kg/s
|
- the flow rate should be provided in kg/s
|
||||||
- if \c rhoName is "none" the flow rate is in m3/s
|
- if \c rho is "none" the flow rate is in m3/s
|
||||||
- otherwise \c rhoName should correspond to the name of the density field
|
- otherwise \c rho should correspond to the name of the density field
|
||||||
- if the density field cannot be found in the database, the user must
|
- if the density field cannot be found in the database, the user must
|
||||||
specify the inlet density using the \c rhoInlet entry
|
specify the inlet density using the \c rhoInlet entry
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,7 @@ mappedPatchFieldBase<Type>::mappedPatchFieldBase
|
|||||||
(
|
(
|
||||||
dict.template lookupOrDefault<word>
|
dict.template lookupOrDefault<word>
|
||||||
(
|
(
|
||||||
"fieldName",
|
"field",
|
||||||
patchField_.internalField().name()
|
patchField_.internalField().name()
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -314,7 +314,7 @@ tmp<Field<Type>> mappedPatchFieldBase<Type>::mappedField() const
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
void mappedPatchFieldBase<Type>::write(Ostream& os) const
|
void mappedPatchFieldBase<Type>::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
os.writeKeyword("fieldName") << fieldName_ << token::END_STATEMENT << nl;
|
os.writeKeyword("field") << fieldName_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("setAverage") << setAverage_ << token::END_STATEMENT << nl;
|
os.writeKeyword("setAverage") << setAverage_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("average") << average_ << token::END_STATEMENT << nl;
|
os.writeKeyword("average") << average_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("interpolationScheme") << interpolationScheme_
|
os.writeKeyword("interpolationScheme") << interpolationScheme_
|
||||||
|
|||||||
@ -69,7 +69,7 @@ outletMappedUniformInletFvPatchField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchField<Type>(p, iF, dict),
|
fixedValueFvPatchField<Type>(p, iF, dict),
|
||||||
outletPatchName_(dict.lookup("outletPatchName")),
|
outletPatchName_(dict.lookup("outletPatch")),
|
||||||
phiName_(dict.lookupOrDefault<word>("phi", "phi"))
|
phiName_(dict.lookupOrDefault<word>("phi", "phi"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ template<class Type>
|
|||||||
void Foam::outletMappedUniformInletFvPatchField<Type>::write(Ostream& os) const
|
void Foam::outletMappedUniformInletFvPatchField<Type>::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
fvPatchField<Type>::write(os);
|
fvPatchField<Type>::write(os);
|
||||||
os.writeKeyword("outletPatchName")
|
os.writeKeyword("outletPatch")
|
||||||
<< outletPatchName_ << token::END_STATEMENT << nl;
|
<< outletPatchName_ << token::END_STATEMENT << nl;
|
||||||
if (phiName_ != "phi")
|
if (phiName_ != "phi")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,7 +40,7 @@ phaseHydrostaticPressureFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
mixedFvPatchScalarField(p, iF),
|
mixedFvPatchScalarField(p, iF),
|
||||||
phaseName_("alpha"),
|
phaseFraction_("alpha"),
|
||||||
rho_(0.0),
|
rho_(0.0),
|
||||||
pRefValue_(0.0),
|
pRefValue_(0.0),
|
||||||
pRefPoint_(Zero)
|
pRefPoint_(Zero)
|
||||||
@ -60,7 +60,7 @@ phaseHydrostaticPressureFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
mixedFvPatchScalarField(p, iF),
|
mixedFvPatchScalarField(p, iF),
|
||||||
phaseName_(dict.lookupOrDefault<word>("phaseName", "alpha")),
|
phaseFraction_(dict.lookupOrDefault<word>("phaseFraction", "alpha")),
|
||||||
rho_(readScalar(dict.lookup("rho"))),
|
rho_(readScalar(dict.lookup("rho"))),
|
||||||
pRefValue_(readScalar(dict.lookup("pRefValue"))),
|
pRefValue_(readScalar(dict.lookup("pRefValue"))),
|
||||||
pRefPoint_(dict.lookup("pRefPoint"))
|
pRefPoint_(dict.lookup("pRefPoint"))
|
||||||
@ -94,7 +94,7 @@ phaseHydrostaticPressureFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
mixedFvPatchScalarField(ptf, p, iF, mapper),
|
mixedFvPatchScalarField(ptf, p, iF, mapper),
|
||||||
phaseName_(ptf.phaseName_),
|
phaseFraction_(ptf.phaseFraction_),
|
||||||
rho_(ptf.rho_),
|
rho_(ptf.rho_),
|
||||||
pRefValue_(ptf.pRefValue_),
|
pRefValue_(ptf.pRefValue_),
|
||||||
pRefPoint_(ptf.pRefPoint_)
|
pRefPoint_(ptf.pRefPoint_)
|
||||||
@ -108,7 +108,7 @@ phaseHydrostaticPressureFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
mixedFvPatchScalarField(ptf),
|
mixedFvPatchScalarField(ptf),
|
||||||
phaseName_(ptf.phaseName_)
|
phaseFraction_(ptf.phaseFraction_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ phaseHydrostaticPressureFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
mixedFvPatchScalarField(ptf, iF),
|
mixedFvPatchScalarField(ptf, iF),
|
||||||
phaseName_(ptf.phaseName_),
|
phaseFraction_(ptf.phaseFraction_),
|
||||||
rho_(ptf.rho_),
|
rho_(ptf.rho_),
|
||||||
pRefValue_(ptf.pRefValue_),
|
pRefValue_(ptf.pRefValue_),
|
||||||
pRefPoint_(ptf.pRefPoint_)
|
pRefPoint_(ptf.pRefPoint_)
|
||||||
@ -139,7 +139,7 @@ void Foam::phaseHydrostaticPressureFvPatchScalarField::updateCoeffs()
|
|||||||
const scalarField& alphap =
|
const scalarField& alphap =
|
||||||
patch().lookupPatchField<volScalarField, scalar>
|
patch().lookupPatchField<volScalarField, scalar>
|
||||||
(
|
(
|
||||||
phaseName_
|
phaseFraction_
|
||||||
);
|
);
|
||||||
|
|
||||||
const uniformDimensionedVectorField& g =
|
const uniformDimensionedVectorField& g =
|
||||||
@ -161,10 +161,10 @@ void Foam::phaseHydrostaticPressureFvPatchScalarField::updateCoeffs()
|
|||||||
void Foam::phaseHydrostaticPressureFvPatchScalarField::write(Ostream& os) const
|
void Foam::phaseHydrostaticPressureFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
fvPatchScalarField::write(os);
|
fvPatchScalarField::write(os);
|
||||||
if (phaseName_ != "alpha")
|
if (phaseFraction_ != "alpha")
|
||||||
{
|
{
|
||||||
os.writeKeyword("phaseName")
|
os.writeKeyword("phaseFraction")
|
||||||
<< phaseName_ << token::END_STATEMENT << nl;
|
<< phaseFraction_ << token::END_STATEMENT << nl;
|
||||||
}
|
}
|
||||||
os.writeKeyword("rho") << rho_ << token::END_STATEMENT << nl;
|
os.writeKeyword("rho") << rho_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("pRefValue") << pRefValue_ << token::END_STATEMENT << nl;
|
os.writeKeyword("pRefValue") << pRefValue_ << token::END_STATEMENT << nl;
|
||||||
@ -182,8 +182,7 @@ void Foam::phaseHydrostaticPressureFvPatchScalarField::operator=
|
|||||||
{
|
{
|
||||||
fvPatchScalarField::operator=
|
fvPatchScalarField::operator=
|
||||||
(
|
(
|
||||||
valueFraction()*refValue()
|
valueFraction()*refValue() + (1 - valueFraction())*ptf
|
||||||
+ (1 - valueFraction())*ptf
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -51,11 +51,11 @@ Description
|
|||||||
\heading Patch usage
|
\heading Patch usage
|
||||||
|
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
phaseName | phase field name | no | alpha
|
phaseFraction | phase-fraction field name | no | alpha
|
||||||
rho | density field name | no | rho
|
rho | density field name | no | rho
|
||||||
pRefValue | reference pressure [Pa] | yes |
|
pRefValue | reference pressure [Pa] | yes |
|
||||||
pRefPoint | reference pressure location | yes |
|
pRefPoint | reference pressure location | yes |
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
Example of the boundary condition specification:
|
Example of the boundary condition specification:
|
||||||
@ -63,7 +63,7 @@ Description
|
|||||||
myPatch
|
myPatch
|
||||||
{
|
{
|
||||||
type phaseHydrostaticPressure;
|
type phaseHydrostaticPressure;
|
||||||
phaseName alpha1;
|
phaseFraction alpha1;
|
||||||
rho rho;
|
rho rho;
|
||||||
pRefValue 1e5;
|
pRefValue 1e5;
|
||||||
pRefPoint (0 0 0);
|
pRefPoint (0 0 0);
|
||||||
@ -103,7 +103,7 @@ protected:
|
|||||||
// Protected data
|
// Protected data
|
||||||
|
|
||||||
//- Name of phase-fraction field
|
//- Name of phase-fraction field
|
||||||
word phaseName_;
|
word phaseFraction_;
|
||||||
|
|
||||||
//- Constant density in the far-field
|
//- Constant density in the far-field
|
||||||
scalar rho_;
|
scalar rho_;
|
||||||
@ -196,16 +196,16 @@ public:
|
|||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return the phaseName
|
//- Return the phaseFraction
|
||||||
const word& phaseName() const
|
const word& phaseFraction() const
|
||||||
{
|
{
|
||||||
return phaseName_;
|
return phaseFraction_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return reference to the phaseName to allow adjustment
|
//- Return reference to the phaseFraction to allow adjustment
|
||||||
word& phaseName()
|
word& phaseFraction()
|
||||||
{
|
{
|
||||||
return phaseName_;
|
return phaseFraction_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return the constant density in the far-field
|
//- Return the constant density in the far-field
|
||||||
|
|||||||
@ -149,7 +149,7 @@ void Foam::prghTotalHydrostaticPressureFvPatchScalarField::write
|
|||||||
writeEntryIfDifferent<word>(os, "U", "U", UName_);
|
writeEntryIfDifferent<word>(os, "U", "U", UName_);
|
||||||
writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
|
writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);
|
||||||
writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);
|
writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);
|
||||||
writeEntryIfDifferent<word>(os, "ph_rghName", "ph_rghName", ph_rghName_);
|
writeEntryIfDifferent<word>(os, "ph_rgh", "ph_rgh", ph_rghName_);
|
||||||
writeEntry("value", os);
|
writeEntry("value", os);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -98,7 +98,7 @@ timeVaryingMappedFixedValueFvPatchField
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dict.readIfPresent("fieldTableName", fieldTableName_);
|
dict.readIfPresent("fieldTable", fieldTableName_);
|
||||||
|
|
||||||
if (dict.found("value"))
|
if (dict.found("value"))
|
||||||
{
|
{
|
||||||
@ -565,7 +565,7 @@ void Foam::timeVaryingMappedFixedValueFvPatchField<Type>::write
|
|||||||
|
|
||||||
if (fieldTableName_ != this->internalField().name())
|
if (fieldTableName_ != this->internalField().name())
|
||||||
{
|
{
|
||||||
os.writeKeyword("fieldTableName") << fieldTableName_
|
os.writeKeyword("fieldTable") << fieldTableName_
|
||||||
<< token::END_STATEMENT << nl;
|
<< token::END_STATEMENT << nl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -29,7 +29,7 @@ License
|
|||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::word Foam::fv::localEulerDdt::rDeltaTName("rDeltaT");
|
Foam::word Foam::fv::localEulerDdt::rDeltaTName("rDeltaT");
|
||||||
Foam::word Foam::fv::localEulerDdt::rSubDeltaTName("rSubDeltaTName");
|
Foam::word Foam::fv::localEulerDdt::rSubDeltaTName("rSubDeltaT");
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ uniformInterpolatedDisplacementPointPatchVectorField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValuePointPatchField<vector>(p, iF, dict),
|
fixedValuePointPatchField<vector>(p, iF, dict),
|
||||||
fieldName_(dict.lookup("fieldName")),
|
fieldName_(dict.lookup("field")),
|
||||||
interpolationScheme_(dict.lookup("interpolationScheme"))
|
interpolationScheme_(dict.lookup("interpolationScheme"))
|
||||||
{
|
{
|
||||||
const pointMesh& pMesh = this->internalField().mesh();
|
const pointMesh& pMesh = this->internalField().mesh();
|
||||||
@ -260,7 +260,7 @@ void uniformInterpolatedDisplacementPointPatchVectorField::write(Ostream& os)
|
|||||||
const
|
const
|
||||||
{
|
{
|
||||||
pointPatchField<vector>::write(os);
|
pointPatchField<vector>::write(os);
|
||||||
os.writeKeyword("fieldName")
|
os.writeKeyword("field")
|
||||||
<< fieldName_ << token::END_STATEMENT << nl;
|
<< fieldName_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("interpolationScheme")
|
os.writeKeyword("interpolationScheme")
|
||||||
<< interpolationScheme_ << token::END_STATEMENT << nl;
|
<< interpolationScheme_ << token::END_STATEMENT << nl;
|
||||||
|
|||||||
@ -37,7 +37,7 @@ Description
|
|||||||
{
|
{
|
||||||
type uniformInterpolatedDisplacement;
|
type uniformInterpolatedDisplacement;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
fieldName wantedDisplacement;
|
field wantedDisplacement;
|
||||||
interpolationScheme linear;
|
interpolationScheme linear;
|
||||||
}
|
}
|
||||||
\endverbatim
|
\endverbatim
|
||||||
|
|||||||
@ -84,7 +84,7 @@ Foam::fv::fixedTemperatureConstraint::fixedTemperatureConstraint
|
|||||||
}
|
}
|
||||||
case tmLookup:
|
case tmLookup:
|
||||||
{
|
{
|
||||||
TName_ = coeffs_.lookupOrDefault<word>("TName", "T");
|
TName_ = coeffs_.lookupOrDefault<word>("T", "T");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@ -157,7 +157,7 @@ bool Foam::fv::fixedTemperatureConstraint::read(const dictionary& dict)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
coeffs_.readIfPresent("TName", TName_);
|
coeffs_.readIfPresent("T", TName_);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,11 +33,11 @@ Description
|
|||||||
{
|
{
|
||||||
mode uniform; // uniform or lookup
|
mode uniform; // uniform or lookup
|
||||||
|
|
||||||
// uniform option
|
// For uniform option
|
||||||
temperature constant 500; // fixed temperature with time [K]
|
temperature constant 500; // fixed temperature with time [K]
|
||||||
|
|
||||||
// lookup option
|
// For lookup option
|
||||||
// TName T; // optional temperature field name
|
// T <Tname>; // optional temperature field name
|
||||||
}
|
}
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|||||||
@ -56,9 +56,9 @@ Foam::fv::buoyancyEnergy::buoyancyEnergy
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(sourceName, modelType, dict, mesh),
|
option(sourceName, modelType, dict, mesh),
|
||||||
UName_(coeffs_.lookupOrDefault<word>("UName", "U"))
|
UName_(coeffs_.lookupOrDefault<word>("U", "U"))
|
||||||
{
|
{
|
||||||
coeffs_.lookup("fieldNames") >> fieldNames_;
|
coeffs_.lookup("fields") >> fieldNames_;
|
||||||
|
|
||||||
if (fieldNames_.size() != 1)
|
if (fieldNames_.size() != 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -68,7 +68,7 @@ Foam::fv::buoyancyForce::buoyancyForce
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
coeffs_.lookup("fieldNames") >> fieldNames_;
|
coeffs_.lookup("fields") >> fieldNames_;
|
||||||
|
|
||||||
if (fieldNames_.size() != 1)
|
if (fieldNames_.size() != 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -156,9 +156,9 @@ Foam::fv::effectivenessHeatExchangerSource::effectivenessHeatExchangerSource
|
|||||||
secondaryInletT_(readScalar(coeffs_.lookup("secondaryInletT"))),
|
secondaryInletT_(readScalar(coeffs_.lookup("secondaryInletT"))),
|
||||||
primaryInletT_(readScalar(coeffs_.lookup("primaryInletT"))),
|
primaryInletT_(readScalar(coeffs_.lookup("primaryInletT"))),
|
||||||
eTable_(),
|
eTable_(),
|
||||||
UName_(coeffs_.lookupOrDefault<word>("UName", "U")),
|
UName_(coeffs_.lookupOrDefault<word>("U", "U")),
|
||||||
TName_(coeffs_.lookupOrDefault<word>("TName", "T")),
|
TName_(coeffs_.lookupOrDefault<word>("T", "T")),
|
||||||
phiName_(coeffs_.lookupOrDefault<word>("phiName", "phi")),
|
phiName_(coeffs_.lookupOrDefault<word>("phi", "phi")),
|
||||||
faceZoneName_(coeffs_.lookup("faceZone")),
|
faceZoneName_(coeffs_.lookup("faceZone")),
|
||||||
zoneID_(mesh_.faceZones().findZoneID(faceZoneName_)),
|
zoneID_(mesh_.faceZones().findZoneID(faceZoneName_)),
|
||||||
faceId_(),
|
faceId_(),
|
||||||
|
|||||||
@ -130,9 +130,9 @@ bool Foam::fv::explicitPorositySource::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
coeffs_.lookup("UNames") >> fieldNames_;
|
coeffs_.lookup("UNames") >> fieldNames_;
|
||||||
}
|
}
|
||||||
else if (coeffs_.found("UName"))
|
else if (coeffs_.found("U"))
|
||||||
{
|
{
|
||||||
word UName(coeffs_.lookup("UName"));
|
word UName(coeffs_.lookup("U"));
|
||||||
fieldNames_ = wordList(1, UName);
|
fieldNames_ = wordList(1, UName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -93,7 +93,7 @@ Foam::fv::meanVelocityForce::meanVelocityForce
|
|||||||
relaxation_(coeffs_.lookupOrDefault<scalar>("relaxation", 1.0)),
|
relaxation_(coeffs_.lookupOrDefault<scalar>("relaxation", 1.0)),
|
||||||
rAPtr_(NULL)
|
rAPtr_(NULL)
|
||||||
{
|
{
|
||||||
coeffs_.lookup("fieldNames") >> fieldNames_;
|
coeffs_.lookup("fields") >> fieldNames_;
|
||||||
|
|
||||||
if (fieldNames_.size() != 1)
|
if (fieldNames_.size() != 1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -586,7 +586,7 @@ bool Foam::fv::rotorDiskSource::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.lookup("fieldNames") >> fieldNames_;
|
coeffs_.lookup("fields") >> fieldNames_;
|
||||||
applied_.setSize(fieldNames_.size(), false);
|
applied_.setSize(fieldNames_.size(), false);
|
||||||
|
|
||||||
// Read co-ordinate system/geometry invariant properties
|
// Read co-ordinate system/geometry invariant properties
|
||||||
|
|||||||
@ -193,10 +193,10 @@ Foam::fv::solidificationMeltingSource::solidificationMeltingSource
|
|||||||
relax_(coeffs_.lookupOrDefault("relax", 0.9)),
|
relax_(coeffs_.lookupOrDefault("relax", 0.9)),
|
||||||
mode_(thermoModeTypeNames_.read(coeffs_.lookup("thermoMode"))),
|
mode_(thermoModeTypeNames_.read(coeffs_.lookup("thermoMode"))),
|
||||||
rhoRef_(readScalar(coeffs_.lookup("rhoRef"))),
|
rhoRef_(readScalar(coeffs_.lookup("rhoRef"))),
|
||||||
TName_(coeffs_.lookupOrDefault<word>("TName", "T")),
|
TName_(coeffs_.lookupOrDefault<word>("T", "T")),
|
||||||
CpName_(coeffs_.lookupOrDefault<word>("CpName", "Cp")),
|
CpName_(coeffs_.lookupOrDefault<word>("Cp", "Cp")),
|
||||||
UName_(coeffs_.lookupOrDefault<word>("UName", "U")),
|
UName_(coeffs_.lookupOrDefault<word>("U", "U")),
|
||||||
phiName_(coeffs_.lookupOrDefault<word>("phiName", "phi")),
|
phiName_(coeffs_.lookupOrDefault<word>("phi", "phi")),
|
||||||
Cu_(coeffs_.lookupOrDefault<scalar>("Cu", 100000)),
|
Cu_(coeffs_.lookupOrDefault<scalar>("Cu", 100000)),
|
||||||
q_(coeffs_.lookupOrDefault("q", 0.001)),
|
q_(coeffs_.lookupOrDefault("q", 0.001)),
|
||||||
beta_(readScalar(coeffs_.lookup("beta"))),
|
beta_(readScalar(coeffs_.lookup("beta"))),
|
||||||
|
|||||||
@ -75,11 +75,11 @@ Description
|
|||||||
relax | Relaxation coefficient [0-1] | no | 0.9
|
relax | Relaxation coefficient [0-1] | no | 0.9
|
||||||
thermoMode | Thermo mode [thermo|lookup] | yes |
|
thermoMode | Thermo mode [thermo|lookup] | yes |
|
||||||
rhoRef | Reference (solid) density | yes |
|
rhoRef | Reference (solid) density | yes |
|
||||||
rhoName | Name of density field | no | rho
|
rho | Name of density field | no | rho
|
||||||
TName | Name of temperature field | no | T
|
T | Name of temperature field | no | T
|
||||||
CpName | Name of specific heat capacity field | no | Cp
|
Cp | Name of specific heat capacity field | no | Cp
|
||||||
UName | Name of velocity field | no | U
|
U | Name of velocity field | no | U
|
||||||
phiName | Name of flux field | no | phi
|
phi | Name of flux field | no | phi
|
||||||
Cu | Model coefficient | no | 100000
|
Cu | Model coefficient | no | 100000
|
||||||
q | Model coefficient | no | 0.001
|
q | Model coefficient | no | 0.001
|
||||||
beta | Thermal expansion coefficient [1/K] | yes |
|
beta | Thermal expansion coefficient [1/K] | yes |
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -39,8 +39,8 @@ bool Foam::fv::solidificationMeltingSource::read(const dictionary& dict)
|
|||||||
mode_ = thermoModeTypeNames_.read(coeffs_.lookup("thermoMode"));
|
mode_ = thermoModeTypeNames_.read(coeffs_.lookup("thermoMode"));
|
||||||
|
|
||||||
coeffs_.lookup("rhoRef") >> rhoRef_;
|
coeffs_.lookup("rhoRef") >> rhoRef_;
|
||||||
coeffs_.readIfPresent("TName", TName_);
|
coeffs_.readIfPresent("T", TName_);
|
||||||
coeffs_.readIfPresent("UName", UName_);
|
coeffs_.readIfPresent("U", UName_);
|
||||||
|
|
||||||
coeffs_.readIfPresent("Cu", Cu_);
|
coeffs_.readIfPresent("Cu", Cu_);
|
||||||
coeffs_.readIfPresent("q", q_);
|
coeffs_.readIfPresent("q", q_);
|
||||||
|
|||||||
@ -58,7 +58,7 @@ Foam::fv::tabulatedAccelerationSource::tabulatedAccelerationSource
|
|||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
option(name, modelType, dict, mesh),
|
||||||
motion_(coeffs_, mesh.time()),
|
motion_(coeffs_, mesh.time()),
|
||||||
UName_(coeffs_.lookupOrDefault<word>("UName", "U")),
|
UName_(coeffs_.lookupOrDefault<word>("U", "U")),
|
||||||
g0_("g0", dimAcceleration, Zero)
|
g0_("g0", dimAcceleration, Zero)
|
||||||
{
|
{
|
||||||
fieldNames_.setSize(1, UName_);
|
fieldNames_.setSize(1, UName_);
|
||||||
|
|||||||
@ -118,8 +118,8 @@ Foam::fv::interRegionExplicitPorositySource::interRegionExplicitPorositySource
|
|||||||
interRegionOption(name, modelType, dict, mesh),
|
interRegionOption(name, modelType, dict, mesh),
|
||||||
porosityPtr_(NULL),
|
porosityPtr_(NULL),
|
||||||
firstIter_(true),
|
firstIter_(true),
|
||||||
UName_(coeffs_.lookupOrDefault<word>("UName", "U")),
|
UName_(coeffs_.lookupOrDefault<word>("U", "U")),
|
||||||
muName_(coeffs_.lookupOrDefault<word>("muName", "thermo:mu"))
|
muName_(coeffs_.lookupOrDefault<word>("mu", "thermo:mu"))
|
||||||
{
|
{
|
||||||
if (active_)
|
if (active_)
|
||||||
{
|
{
|
||||||
@ -289,8 +289,8 @@ bool Foam::fv::interRegionExplicitPorositySource::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
if (interRegionOption::read(dict))
|
if (interRegionOption::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readIfPresent("UName", UName_);
|
coeffs_.readIfPresent("U", UName_);
|
||||||
coeffs_.readIfPresent("muName", muName_);
|
coeffs_.readIfPresent("mu", muName_);
|
||||||
|
|
||||||
// Reset the porosity model?
|
// Reset the porosity model?
|
||||||
|
|
||||||
|
|||||||
@ -119,7 +119,7 @@ Foam::fv::interRegionHeatTransferModel::interRegionHeatTransferModel
|
|||||||
dict,
|
dict,
|
||||||
mesh
|
mesh
|
||||||
),
|
),
|
||||||
nbrModelName_(coeffs_.lookup("nbrModelName")),
|
nbrModelName_(coeffs_.lookup("nbrModel")),
|
||||||
nbrModel_(NULL),
|
nbrModel_(NULL),
|
||||||
firstIter_(true),
|
firstIter_(true),
|
||||||
timeIndex_(-1),
|
timeIndex_(-1),
|
||||||
@ -143,12 +143,12 @@ Foam::fv::interRegionHeatTransferModel::interRegionHeatTransferModel
|
|||||||
zeroGradientFvPatchScalarField::typeName
|
zeroGradientFvPatchScalarField::typeName
|
||||||
),
|
),
|
||||||
semiImplicit_(false),
|
semiImplicit_(false),
|
||||||
TName_(coeffs_.lookupOrDefault<word>("TName", "T")),
|
TName_(coeffs_.lookupOrDefault<word>("T", "T")),
|
||||||
TNbrName_(coeffs_.lookupOrDefault<word>("TNbrName", "T"))
|
TNbrName_(coeffs_.lookupOrDefault<word>("TNbr", "T"))
|
||||||
{
|
{
|
||||||
if (active())
|
if (active())
|
||||||
{
|
{
|
||||||
coeffs_.lookup("fieldNames") >> fieldNames_;
|
coeffs_.lookup("fields") >> fieldNames_;
|
||||||
applied_.setSize(fieldNames_.size(), false);
|
applied_.setSize(fieldNames_.size(), false);
|
||||||
|
|
||||||
coeffs_.lookup("semiImplicit") >> semiImplicit_;
|
coeffs_.lookup("semiImplicit") >> semiImplicit_;
|
||||||
|
|||||||
@ -93,8 +93,8 @@ Foam::fv::tabulatedHeatTransfer::tabulatedHeatTransfer
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
interRegionHeatTransferModel(name, modelType, dict, mesh),
|
interRegionHeatTransferModel(name, modelType, dict, mesh),
|
||||||
UName_(coeffs_.lookupOrDefault<word>("UName", "U")),
|
UName_(coeffs_.lookupOrDefault<word>("U", "U")),
|
||||||
UNbrName_(coeffs_.lookupOrDefault<word>("UNbrName", "U")),
|
UNbrName_(coeffs_.lookupOrDefault<word>("UNbr", "U")),
|
||||||
hTable_(),
|
hTable_(),
|
||||||
AoV_(),
|
AoV_(),
|
||||||
startTimeName_(mesh.time().timeName())
|
startTimeName_(mesh.time().timeName())
|
||||||
|
|||||||
@ -55,7 +55,7 @@ Foam::fv::variableHeatTransfer::variableHeatTransfer
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
interRegionHeatTransferModel(name, modelType, dict, mesh),
|
interRegionHeatTransferModel(name, modelType, dict, mesh),
|
||||||
UNbrName_(coeffs_.lookupOrDefault<word>("UNbrName", "U")),
|
UNbrName_(coeffs_.lookupOrDefault<word>("UNbr", "U")),
|
||||||
a_(0),
|
a_(0),
|
||||||
b_(0),
|
b_(0),
|
||||||
c_(0),
|
c_(0),
|
||||||
@ -130,7 +130,7 @@ bool Foam::fv::variableHeatTransfer::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
if (interRegionHeatTransferModel::read(dict))
|
if (interRegionHeatTransferModel::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readIfPresent("UNbrName", UNbrName_);
|
coeffs_.readIfPresent("UNbr", UNbrName_);
|
||||||
|
|
||||||
coeffs_.readIfPresent("a", a_);
|
coeffs_.readIfPresent("a", a_);
|
||||||
coeffs_.readIfPresent("b", b_);
|
coeffs_.readIfPresent("b", b_);
|
||||||
|
|||||||
@ -1107,7 +1107,7 @@ Foam::InteractionLists<ParticleType>::InteractionLists(const polyMesh& mesh)
|
|||||||
cellIndexAndTransformToDistribute_(),
|
cellIndexAndTransformToDistribute_(),
|
||||||
wallFaceIndexAndTransformToDistribute_(),
|
wallFaceIndexAndTransformToDistribute_(),
|
||||||
referredWallFaces_(),
|
referredWallFaces_(),
|
||||||
UName_("unknown_UName"),
|
UName_("unknown_U"),
|
||||||
referredWallData_(),
|
referredWallData_(),
|
||||||
referredParticles_()
|
referredParticles_()
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -39,7 +39,7 @@ Foam::ParticleTrap<CloudType>::ParticleTrap
|
|||||||
CloudFunctionObject<CloudType>(dict, owner, modelName, typeName),
|
CloudFunctionObject<CloudType>(dict, owner, modelName, typeName),
|
||||||
alphaName_
|
alphaName_
|
||||||
(
|
(
|
||||||
this->coeffDict().template lookupOrDefault<word>("alphaName", "alpha")
|
this->coeffDict().template lookupOrDefault<word>("alpha", "alpha")
|
||||||
),
|
),
|
||||||
alphaPtr_(NULL),
|
alphaPtr_(NULL),
|
||||||
gradAlphaPtr_(NULL),
|
gradAlphaPtr_(NULL),
|
||||||
|
|||||||
@ -591,7 +591,7 @@ Foam::PairCollision<CloudType>::PairCollision
|
|||||||
false
|
false
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
this->coeffDict().lookupOrDefault("UName", word("U"))
|
this->coeffDict().lookupOrDefault("U", word("U"))
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -110,7 +110,7 @@ Foam::PatchInteractionModel<CloudType>::PatchInteractionModel
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
CloudSubModelBase<CloudType>(owner),
|
CloudSubModelBase<CloudType>(owner),
|
||||||
UName_("unknown_UName")
|
UName_("unknown_U")
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ Foam::PatchInteractionModel<CloudType>::PatchInteractionModel
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
CloudSubModelBase<CloudType>(owner, dict, typeName, type),
|
CloudSubModelBase<CloudType>(owner, dict, typeName, type),
|
||||||
UName_(this->coeffDict().lookupOrDefault("UName", word("U")))
|
UName_(this->coeffDict().lookupOrDefault("U", word("U")))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -59,9 +59,6 @@ functions
|
|||||||
|
|
||||||
setFormat vtk; //gnuplot, raw etc. See sampleDict.
|
setFormat vtk; //gnuplot, raw etc. See sampleDict.
|
||||||
|
|
||||||
// Velocity field to use for tracking.
|
|
||||||
UName U;
|
|
||||||
|
|
||||||
// Interpolation method. Default is cellPoint. See sampleDict.
|
// Interpolation method. Default is cellPoint. See sampleDict.
|
||||||
//interpolationScheme pointMVC;
|
//interpolationScheme pointMVC;
|
||||||
|
|
||||||
|
|||||||
@ -324,9 +324,9 @@ bool Foam::functionObjects::streamLine::read(const dictionary& dict)
|
|||||||
Info<< type() << " " << name() << ":" << nl;
|
Info<< type() << " " << name() << ":" << nl;
|
||||||
|
|
||||||
dict.lookup("fields") >> fields_;
|
dict.lookup("fields") >> fields_;
|
||||||
if (dict.found("UName"))
|
if (dict.found("U"))
|
||||||
{
|
{
|
||||||
dict.lookup("UName") >> UName_;
|
dict.lookup("U") >> UName_;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,7 +40,6 @@ Description
|
|||||||
libs ("libfieldFunctionObjects.so");
|
libs ("libfieldFunctionObjects.so");
|
||||||
...
|
...
|
||||||
setFormat vtk;
|
setFormat vtk;
|
||||||
UName U;
|
|
||||||
trackForward yes;
|
trackForward yes;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
@ -66,15 +65,15 @@ Description
|
|||||||
\heading Function object usage
|
\heading Function object usage
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
type | type name: streamLine | yes |
|
type | Type name: streamLine | yes |
|
||||||
setFormat | output data type | yes |
|
setFormat | Output data type | yes |
|
||||||
UName | tracking velocity field name | yes |
|
U | Tracking velocity field name | yes |
|
||||||
fields | fields to sample | yes |
|
fields | Fields to sample | yes |
|
||||||
lifetime | maximum number of particle tracking steps | yes |
|
lifetime | Maximum number of particle tracking steps | yes |
|
||||||
trackLength | tracking segment length | no |
|
trackLength | Tracking segment length | no |
|
||||||
nSubCycle | number of tracking steps per cell | no|
|
nSubCycle | Number of tracking steps per cell | no|
|
||||||
cloudName | cloud name to use | yes |
|
cloudName | Cloud name to use | yes |
|
||||||
seedSampleSet| seeding method (see below)| yes |
|
seedSampleSet| Seeding method (see below)| yes |
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
\linebreak
|
\linebreak
|
||||||
|
|||||||
@ -92,7 +92,7 @@ functions
|
|||||||
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
|
setFormat vtk; //gnuplot; //xmgr; //raw; //jplot;
|
||||||
|
|
||||||
// Velocity field to use for tracking.
|
// Velocity field to use for tracking.
|
||||||
UName UNear;
|
U UNear;
|
||||||
|
|
||||||
// Interpolation method. Default is cellPoint. See sampleDict.
|
// Interpolation method. Default is cellPoint. See sampleDict.
|
||||||
//interpolationScheme pointMVC;
|
//interpolationScheme pointMVC;
|
||||||
|
|||||||
@ -441,9 +441,9 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
//dict_ = dict;
|
//dict_ = dict;
|
||||||
dict.lookup("fields") >> fields_;
|
dict.lookup("fields") >> fields_;
|
||||||
if (dict.found("UName"))
|
if (dict.found("U"))
|
||||||
{
|
{
|
||||||
dict.lookup("UName") >> UName_;
|
dict.lookup("U") >> UName_;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,7 +40,7 @@ Description
|
|||||||
libs ("libfieldFunctionObjects.so");
|
libs ("libfieldFunctionObjects.so");
|
||||||
...
|
...
|
||||||
setFormat vtk;
|
setFormat vtk;
|
||||||
UName UNear;
|
U UNear;
|
||||||
trackForward yes;
|
trackForward yes;
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
@ -65,15 +65,15 @@ Description
|
|||||||
\heading Function object usage
|
\heading Function object usage
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
type | type name: wallBoundedStreamLine| yes |
|
type | Type name: wallBoundedStreamLine| yes |
|
||||||
setFormat | output data type | yes |
|
setFormat | Output data type | yes |
|
||||||
UName | tracking velocity field name | yes |
|
U | Tracking velocity field name | yes |
|
||||||
fields | fields to sample | yes |
|
fields | Fields to sample | yes |
|
||||||
lifetime | maximum number of particle tracking steps | yes |
|
lifetime | Maximum number of particle tracking steps | yes |
|
||||||
trackLength | tracking segment length | no |
|
trackLength | Tracking segment length | no |
|
||||||
nSubCycle | number of tracking steps per cell | no|
|
nSubCycle | Number of tracking steps per cell | no|
|
||||||
cloudName | cloud name to use | yes |
|
cloudName | Cloud name to use | yes |
|
||||||
seedSampleSet| seeding method (see below)| yes |
|
seedSampleSet| Seeding method (see below)| yes |
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
\linebreak
|
\linebreak
|
||||||
|
|||||||
@ -624,14 +624,14 @@ bool Foam::functionObjects::forces::read(const dictionary& dict)
|
|||||||
if (directForceDensity_)
|
if (directForceDensity_)
|
||||||
{
|
{
|
||||||
// Optional entry for fDName
|
// Optional entry for fDName
|
||||||
fDName_ = dict.lookupOrDefault<word>("fDName", "fD");
|
fDName_ = dict.lookupOrDefault<word>("fD", "fD");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Optional entries U and p
|
// Optional entries U and p
|
||||||
pName_ = dict.lookupOrDefault<word>("pName", "p");
|
pName_ = dict.lookupOrDefault<word>("p", "p");
|
||||||
UName_ = dict.lookupOrDefault<word>("UName", "U");
|
UName_ = dict.lookupOrDefault<word>("U", "U");
|
||||||
rhoName_ = dict.lookupOrDefault<word>("rhoName", "rho");
|
rhoName_ = dict.lookupOrDefault<word>("rho", "rho");
|
||||||
|
|
||||||
// Reference density needed for incompressible calculations
|
// Reference density needed for incompressible calculations
|
||||||
rhoRef_ = readScalar(dict.lookup("rhoInf"));
|
rhoRef_ = readScalar(dict.lookup("rhoInf"));
|
||||||
|
|||||||
@ -57,15 +57,15 @@ Description
|
|||||||
\heading Function object usage
|
\heading Function object usage
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
type | type name: forces | yes |
|
type | Type name: forces | yes |
|
||||||
log | write force data to standard output | no | no
|
log | Write force data to standard output | no | no
|
||||||
patches | patches included in the forces calculation | yes |
|
patches | Patches included in the forces calculation | yes |
|
||||||
pName | pressure field name | no | p
|
p | Pressure field name | no | p
|
||||||
UName | velocity field name | no | U
|
U | Velocity field name | no | U
|
||||||
rhoName | density field name (see below) | no | rho
|
rho | Density field name (see below) | no | rho
|
||||||
CofR | centre of rotation (see below) | no |
|
CofR | Centre of rotation (see below) | no |
|
||||||
directForceDensity | force density supplied directly (see below)|no|no
|
directForceDensity | Force density supplied directly (see below)|no|no
|
||||||
fDName | name of force density field (see below) | no | fD
|
fD | Name of force density field (see below) | no | fD
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
Bin data is optional, but if the dictionary is present, the entries must
|
Bin data is optional, but if the dictionary is present, the entries must
|
||||||
@ -77,7 +77,7 @@ Description
|
|||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
Note
|
Note
|
||||||
- For incompressible cases, set \c rhoName to \c rhoInf. You will then be
|
- For incompressible cases, set \c rho to \c rhoInf. You will then be
|
||||||
required to provide a \c rhoInf value corresponding to the free-stream
|
required to provide a \c rhoInf value corresponding to the free-stream
|
||||||
constant density.
|
constant density.
|
||||||
- If the force density is supplied directly, set the \c directForceDensity
|
- If the force density is supplied directly, set the \c directForceDensity
|
||||||
@ -222,7 +222,7 @@ protected:
|
|||||||
//- Dynamic viscosity field
|
//- Dynamic viscosity field
|
||||||
tmp<volScalarField> mu() const;
|
tmp<volScalarField> mu() const;
|
||||||
|
|
||||||
//- Return rho if rhoName is specified otherwise rhoRef
|
//- Return rho if specified otherwise rhoRef
|
||||||
tmp<volScalarField> rho() const;
|
tmp<volScalarField> rho() const;
|
||||||
|
|
||||||
//- Return rhoRef if the pressure field is dynamic, i.e. p/rho
|
//- Return rhoRef if the pressure field is dynamic, i.e. p/rho
|
||||||
|
|||||||
@ -240,9 +240,9 @@ Foam::functionObjects::pressureTools::~pressureTools()
|
|||||||
|
|
||||||
bool Foam::functionObjects::pressureTools::read(const dictionary& dict)
|
bool Foam::functionObjects::pressureTools::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
dict.readIfPresent("pName", pName_);
|
dict.readIfPresent("p", pName_);
|
||||||
dict.readIfPresent("UName", UName_);
|
dict.readIfPresent("U", UName_);
|
||||||
dict.readIfPresent("rhoName", rhoName_);
|
dict.readIfPresent("rho", rhoName_);
|
||||||
|
|
||||||
if (rhoName_ == "rhoInf")
|
if (rhoName_ == "rhoInf")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -64,8 +64,8 @@ Foam::functionObjects::blendingFactor::~blendingFactor()
|
|||||||
|
|
||||||
bool Foam::functionObjects::blendingFactor::read(const dictionary& dict)
|
bool Foam::functionObjects::blendingFactor::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
phiName_ = dict.lookupOrDefault<word>("phiName", "phi");
|
phiName_ = dict.lookupOrDefault<word>("phi", "phi");
|
||||||
dict.lookup("fieldName") >> fieldName_;
|
dict.lookup("field") >> fieldName_;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -197,9 +197,9 @@ bool Foam::functionObjects::scalarTransport::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
Info<< type() << ":" << nl;
|
Info<< type() << ":" << nl;
|
||||||
|
|
||||||
phiName_ = dict.lookupOrDefault<word>("phiName", "phi");
|
phiName_ = dict.lookupOrDefault<word>("phi", "phi");
|
||||||
UName_ = dict.lookupOrDefault<word>("UName", "U");
|
UName_ = dict.lookupOrDefault<word>("U", "U");
|
||||||
rhoName_ = dict.lookupOrDefault<word>("rhoName", "rho");
|
rhoName_ = dict.lookupOrDefault<word>("rho", "rho");
|
||||||
|
|
||||||
userDT_ = false;
|
userDT_ = false;
|
||||||
if (dict.readIfPresent("DT", DT_))
|
if (dict.readIfPresent("DT", DT_))
|
||||||
|
|||||||
@ -116,7 +116,7 @@ Foam::functionObjects::yPlus::~yPlus()
|
|||||||
bool Foam::functionObjects::yPlus::read(const dictionary& dict)
|
bool Foam::functionObjects::yPlus::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
writeFiles::read(dict);
|
writeFiles::read(dict);
|
||||||
phiName_ = dict.lookupOrDefault<word>("phiName", "phi");
|
phiName_ = dict.lookupOrDefault<word>("phi", "phi");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,7 +66,7 @@ constantFilmThermo::constantFilmThermo
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
filmThermoModel(typeName, owner, dict),
|
filmThermoModel(typeName, owner, dict),
|
||||||
name_(coeffDict_.lookup("specieName")),
|
name_(coeffDict_.lookup("specie")),
|
||||||
rho0_("rho0"),
|
rho0_("rho0"),
|
||||||
mu0_("mu0"),
|
mu0_("mu0"),
|
||||||
sigma0_("sigma0"),
|
sigma0_("sigma0"),
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -59,27 +59,23 @@ public:
|
|||||||
|
|
||||||
struct thermoData
|
struct thermoData
|
||||||
{
|
{
|
||||||
// private:
|
|
||||||
word name_;
|
word name_;
|
||||||
scalar value_;
|
scalar value_;
|
||||||
bool set_;
|
bool set_;
|
||||||
|
|
||||||
// public:
|
|
||||||
thermoData()
|
thermoData()
|
||||||
:
|
:
|
||||||
name_("unknown"),
|
name_("unknown"),
|
||||||
value_(0.0),
|
value_(0.0),
|
||||||
set_(false)
|
set_(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
thermoData(const word& n)
|
thermoData(const word& n)
|
||||||
:
|
:
|
||||||
name_(n),
|
name_(n),
|
||||||
value_(0.0),
|
value_(0.0),
|
||||||
set_(false)
|
set_(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
// virtual ~thermoData()
|
|
||||||
// {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -114,7 +114,7 @@ Foam::rigidBodyMeshMotion::rigidBodyMeshMotion
|
|||||||
),
|
),
|
||||||
test_(coeffDict().lookupOrDefault<Switch>("test", false)),
|
test_(coeffDict().lookupOrDefault<Switch>("test", false)),
|
||||||
rhoInf_(1.0),
|
rhoInf_(1.0),
|
||||||
rhoName_(coeffDict().lookupOrDefault<word>("rhoName", "rho")),
|
rhoName_(coeffDict().lookupOrDefault<word>("rho", "rho")),
|
||||||
curTimeIndex_(-1)
|
curTimeIndex_(-1)
|
||||||
{
|
{
|
||||||
if (rhoName_ == "rhoInf")
|
if (rhoName_ == "rhoInf")
|
||||||
@ -253,7 +253,7 @@ void Foam::rigidBodyMeshMotion::solve()
|
|||||||
forcesDict.add("type", functionObjects::forces::typeName);
|
forcesDict.add("type", functionObjects::forces::typeName);
|
||||||
forcesDict.add("patches", bodyMeshes_[bi].patches_);
|
forcesDict.add("patches", bodyMeshes_[bi].patches_);
|
||||||
forcesDict.add("rhoInf", rhoInf_);
|
forcesDict.add("rhoInf", rhoInf_);
|
||||||
forcesDict.add("rhoName", rhoName_);
|
forcesDict.add("rho", rhoName_);
|
||||||
forcesDict.add("CofR", vector::zero);
|
forcesDict.add("CofR", vector::zero);
|
||||||
|
|
||||||
functionObjects::forces f("forces", db(), forcesDict);
|
functionObjects::forces f("forces", db(), forcesDict);
|
||||||
|
|||||||
@ -108,7 +108,7 @@ class rigidBodyMeshMotion
|
|||||||
Switch test_;
|
Switch test_;
|
||||||
|
|
||||||
//- Reference density required by the forces object for
|
//- Reference density required by the forces object for
|
||||||
// incompressible calculations, required if rhoName == rhoInf
|
// incompressible calculations, required if rho == rhoInf
|
||||||
scalar rhoInf_;
|
scalar rhoInf_;
|
||||||
|
|
||||||
//- Name of density field, optional unless used for an
|
//- Name of density field, optional unless used for an
|
||||||
|
|||||||
@ -68,7 +68,7 @@ sixDoFRigidBodyDisplacementPointPatchVectorField
|
|||||||
fixedValuePointPatchField<vector>(p, iF, dict),
|
fixedValuePointPatchField<vector>(p, iF, dict),
|
||||||
motion_(dict, dict),
|
motion_(dict, dict),
|
||||||
rhoInf_(1.0),
|
rhoInf_(1.0),
|
||||||
rhoName_(dict.lookupOrDefault<word>("rhoName", "rho")),
|
rhoName_(dict.lookupOrDefault<word>("rho", "rho")),
|
||||||
lookupGravity_(-1),
|
lookupGravity_(-1),
|
||||||
g_(Zero),
|
g_(Zero),
|
||||||
curTimeIndex_(-1)
|
curTimeIndex_(-1)
|
||||||
@ -213,7 +213,7 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs()
|
|||||||
forcesDict.add("type", functionObjects::forces::typeName);
|
forcesDict.add("type", functionObjects::forces::typeName);
|
||||||
forcesDict.add("patches", wordList(1, ptPatch.name()));
|
forcesDict.add("patches", wordList(1, ptPatch.name()));
|
||||||
forcesDict.add("rhoInf", rhoInf_);
|
forcesDict.add("rhoInf", rhoInf_);
|
||||||
forcesDict.add("rhoName", rhoName_);
|
forcesDict.add("rho", rhoName_);
|
||||||
forcesDict.add("CofR", motion_.centreOfRotation());
|
forcesDict.add("CofR", motion_.centreOfRotation());
|
||||||
|
|
||||||
functionObjects::forces f("forces", db(), forcesDict);
|
functionObjects::forces f("forces", db(), forcesDict);
|
||||||
@ -255,7 +255,7 @@ void sixDoFRigidBodyDisplacementPointPatchVectorField::write(Ostream& os) const
|
|||||||
{
|
{
|
||||||
pointPatchField<vector>::write(os);
|
pointPatchField<vector>::write(os);
|
||||||
|
|
||||||
os.writeKeyword("rhoName") << rhoName_ << token::END_STATEMENT << nl;
|
os.writeKeyword("rho") << rhoName_ << token::END_STATEMENT << nl;
|
||||||
|
|
||||||
if (rhoName_ == "rhoInf")
|
if (rhoName_ == "rhoInf")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -60,7 +60,7 @@ class sixDoFRigidBodyDisplacementPointPatchVectorField
|
|||||||
pointField initialPoints_;
|
pointField initialPoints_;
|
||||||
|
|
||||||
//- Reference density required by the forces object for
|
//- Reference density required by the forces object for
|
||||||
// incompressible calculations, required if rhoName == rhoInf
|
// incompressible calculations, required if rho == rhoInf
|
||||||
scalar rhoInf_;
|
scalar rhoInf_;
|
||||||
|
|
||||||
//- Name of density field, optional unless used for an
|
//- Name of density field, optional unless used for an
|
||||||
|
|||||||
@ -87,7 +87,7 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
|
|||||||
do_(readScalar(coeffDict().lookup("outerDistance"))),
|
do_(readScalar(coeffDict().lookup("outerDistance"))),
|
||||||
test_(coeffDict().lookupOrDefault<Switch>("test", false)),
|
test_(coeffDict().lookupOrDefault<Switch>("test", false)),
|
||||||
rhoInf_(1.0),
|
rhoInf_(1.0),
|
||||||
rhoName_(coeffDict().lookupOrDefault<word>("rhoName", "rho")),
|
rhoName_(coeffDict().lookupOrDefault<word>("rho", "rho")),
|
||||||
scale_
|
scale_
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
@ -219,7 +219,7 @@ void Foam::sixDoFRigidBodyMotionSolver::solve()
|
|||||||
forcesDict.add("type", functionObjects::forces::typeName);
|
forcesDict.add("type", functionObjects::forces::typeName);
|
||||||
forcesDict.add("patches", patches_);
|
forcesDict.add("patches", patches_);
|
||||||
forcesDict.add("rhoInf", rhoInf_);
|
forcesDict.add("rhoInf", rhoInf_);
|
||||||
forcesDict.add("rhoName", rhoName_);
|
forcesDict.add("rho", rhoName_);
|
||||||
forcesDict.add("CofR", motion_.centreOfRotation());
|
forcesDict.add("CofR", motion_.centreOfRotation());
|
||||||
|
|
||||||
functionObjects::forces f("forces", db(), forcesDict);
|
functionObjects::forces f("forces", db(), forcesDict);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -75,7 +75,7 @@ class sixDoFRigidBodyMotionSolver
|
|||||||
Switch test_;
|
Switch test_;
|
||||||
|
|
||||||
//- Reference density required by the forces object for
|
//- Reference density required by the forces object for
|
||||||
// incompressible calculations, required if rhoName == rhoInf
|
// incompressible calculations, required if rho == rhoInf
|
||||||
scalar rhoInf_;
|
scalar rhoInf_;
|
||||||
|
|
||||||
//- Name of density field, optional unless used for an
|
//- Name of density field, optional unless used for an
|
||||||
|
|||||||
@ -88,7 +88,7 @@ Foam::radiation::mixtureFractionSoot<ThermoType>::mixtureFractionSoot
|
|||||||
sootMax_(-1),
|
sootMax_(-1),
|
||||||
mappingFieldName_
|
mappingFieldName_
|
||||||
(
|
(
|
||||||
coeffsDict_.lookupOrDefault<word>("mappingFieldName", "none")
|
coeffsDict_.lookupOrDefault<word>("mappingField", "none")
|
||||||
),
|
),
|
||||||
mapFieldMax_(1),
|
mapFieldMax_(1),
|
||||||
thermo_(mesh.lookupObject<fluidThermo>(basicThermo::dictName)),
|
thermo_(mesh.lookupObject<fluidThermo>(basicThermo::dictName)),
|
||||||
|
|||||||
@ -47,7 +47,7 @@ Description
|
|||||||
{
|
{
|
||||||
nuSoot 0.015;
|
nuSoot 0.015;
|
||||||
Wsoot 12;
|
Wsoot 12;
|
||||||
mappingFieldName P;
|
mappingField P;
|
||||||
}
|
}
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
|
|||||||
@ -31,7 +31,7 @@ Description
|
|||||||
|
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
TName | Temperature field name | no | T
|
T | Temperature field name | no | T
|
||||||
theta0 | Contact angle data | yes |
|
theta0 | Contact angle data | yes |
|
||||||
\endtable
|
\endtable
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,6 @@ boundaryField
|
|||||||
openingTime 0.01;
|
openingTime 0.01;
|
||||||
maxOpenFractionDelta 0.1;
|
maxOpenFractionDelta 0.1;
|
||||||
openFraction 0;
|
openFraction 0;
|
||||||
p p;
|
|
||||||
minThresholdValue 8000;
|
minThresholdValue 8000;
|
||||||
forceBased 0;
|
forceBased 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,7 +56,6 @@ dictionaryReplacement
|
|||||||
openingTime 0.01;
|
openingTime 0.01;
|
||||||
maxOpenFractionDelta 0.1;
|
maxOpenFractionDelta 0.1;
|
||||||
openFraction 0;
|
openFraction 0;
|
||||||
p p;
|
|
||||||
minThresholdValue 8000;
|
minThresholdValue 8000;
|
||||||
forceBased 0;
|
forceBased 0;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
|
|||||||
@ -45,16 +45,12 @@ boundaryField
|
|||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type totalFlowRateAdvectiveDiffusive;
|
type totalFlowRateAdvectiveDiffusive;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
value uniform 1;
|
value uniform 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
region0_to_pyrolysisRegion_coupledWall
|
region0_to_pyrolysisRegion_coupledWall
|
||||||
{
|
{
|
||||||
type totalFlowRateAdvectiveDiffusive;
|
type totalFlowRateAdvectiveDiffusive;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
massFluxFraction 1.0;
|
massFluxFraction 1.0;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,6 @@ boundaryField
|
|||||||
region0_to_pyrolysisRegion_coupledWall
|
region0_to_pyrolysisRegion_coupledWall
|
||||||
{
|
{
|
||||||
type greyDiffusiveRadiation;
|
type greyDiffusiveRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode solidRadiation;
|
emissivityMode solidRadiation;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
@ -38,7 +37,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type greyDiffusiveRadiation;
|
type greyDiffusiveRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -50,8 +50,6 @@ boundaryField
|
|||||||
region0_to_pyrolysisRegion_coupledWall
|
region0_to_pyrolysisRegion_coupledWall
|
||||||
{
|
{
|
||||||
type totalFlowRateAdvectiveDiffusive;
|
type totalFlowRateAdvectiveDiffusive;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
massFluxFraction 0.0;
|
massFluxFraction 0.0;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,10 +52,9 @@ boundaryField
|
|||||||
pyrolysisRegion pyrolysisRegion;
|
pyrolysisRegion pyrolysisRegion;
|
||||||
filmRegion filmRegion;
|
filmRegion filmRegion;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa fluidThermo;
|
kappaMethod fluidThermo;
|
||||||
QrNbr none;
|
QrNbr none;
|
||||||
Qr Qr;
|
Qr Qr;
|
||||||
kappaName none;
|
|
||||||
filmDeltaDry 0.0;
|
filmDeltaDry 0.0;
|
||||||
filmDeltaWet 2e-4;
|
filmDeltaWet 2e-4;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
|
|||||||
@ -38,7 +38,6 @@ boundaryField
|
|||||||
side
|
side
|
||||||
{
|
{
|
||||||
type pressureInletOutletVelocity;
|
type pressureInletOutletVelocity;
|
||||||
phi phi;
|
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,9 +51,7 @@ boundaryField
|
|||||||
region0_to_pyrolysisRegion_coupledWall
|
region0_to_pyrolysisRegion_coupledWall
|
||||||
{
|
{
|
||||||
type mappedFlowRate;
|
type mappedFlowRate;
|
||||||
phi phi;
|
|
||||||
nbrPhi phiGas;
|
nbrPhi phiGas;
|
||||||
rho rho;
|
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,16 +44,12 @@ boundaryField
|
|||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type fixedValue;
|
type fixedValue;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
region0_to_pyrolysisRegion_coupledWall
|
region0_to_pyrolysisRegion_coupledWall
|
||||||
{
|
{
|
||||||
type totalFlowRateAdvectiveDiffusive;
|
type totalFlowRateAdvectiveDiffusive;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
massFluxFraction 0.0;
|
massFluxFraction 0.0;
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ boundaryField
|
|||||||
sampleMode nearestPatchFace;
|
sampleMode nearestPatchFace;
|
||||||
samplePatch region0_to_pyrolysisRegion_coupledWall;
|
samplePatch region0_to_pyrolysisRegion_coupledWall;
|
||||||
offset (0 0 0);
|
offset (0 0 0);
|
||||||
fieldName T;
|
field T;
|
||||||
setAverage no;
|
setAverage no;
|
||||||
average 0;
|
average 0;
|
||||||
value uniform 298;
|
value uniform 298;
|
||||||
|
|||||||
@ -38,7 +38,7 @@ boundaryField
|
|||||||
sampleMode nearestPatchFace;
|
sampleMode nearestPatchFace;
|
||||||
samplePatch region0_to_pyrolysisRegion_coupledWall;
|
samplePatch region0_to_pyrolysisRegion_coupledWall;
|
||||||
offset (0 0 0);
|
offset (0 0 0);
|
||||||
fieldName Qr; // this is the name of Qr field in region0
|
field Qr; // this is the name of Qr field in region0
|
||||||
setAverage no;
|
setAverage no;
|
||||||
average 0;
|
average 0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -37,8 +37,7 @@ boundaryField
|
|||||||
pyrolysisRegion pyrolysisRegion;
|
pyrolysisRegion pyrolysisRegion;
|
||||||
filmRegion filmRegion;
|
filmRegion filmRegion;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa solidThermo;
|
kappaMethod solidThermo;
|
||||||
kappaName none;
|
|
||||||
QrNbr Qr;
|
QrNbr Qr;
|
||||||
Qr none;
|
Qr none;
|
||||||
filmDeltaDry 0.0;
|
filmDeltaDry 0.0;
|
||||||
|
|||||||
@ -40,15 +40,11 @@ boundaryField
|
|||||||
burner
|
burner
|
||||||
{
|
{
|
||||||
type totalFlowRateAdvectiveDiffusive;
|
type totalFlowRateAdvectiveDiffusive;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
value uniform 1.0;
|
value uniform 1.0;
|
||||||
}
|
}
|
||||||
"(region0_to.*)"
|
"(region0_to.*)"
|
||||||
{
|
{
|
||||||
type totalFlowRateAdvectiveDiffusive;
|
type totalFlowRateAdvectiveDiffusive;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
@ -32,7 +31,6 @@ boundaryField
|
|||||||
"(region0_to.*)"
|
"(region0_to.*)"
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode solidRadiation;
|
emissivityMode solidRadiation;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type greyDiffusiveRadiation;
|
type greyDiffusiveRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
@ -31,7 +30,6 @@ boundaryField
|
|||||||
"(region0_to.*)"
|
"(region0_to.*)"
|
||||||
{
|
{
|
||||||
type greyDiffusiveRadiation;
|
type greyDiffusiveRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode solidRadiation;
|
emissivityMode solidRadiation;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,10 +50,9 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type compressible::turbulentTemperatureRadCoupledMixed;
|
type compressible::turbulentTemperatureRadCoupledMixed;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa fluidThermo;
|
kappaMethod fluidThermo;
|
||||||
QrNbr none;
|
QrNbr none;
|
||||||
Qr Qr;
|
Qr Qr;
|
||||||
kappaName none;
|
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,16 +37,13 @@ boundaryField
|
|||||||
"(top|sides)"
|
"(top|sides)"
|
||||||
{
|
{
|
||||||
type pressureInletOutletVelocity;
|
type pressureInletOutletVelocity;
|
||||||
phi phi;
|
|
||||||
value $internalField;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
"(region0_to.*)"
|
"(region0_to.*)"
|
||||||
{
|
{
|
||||||
type mappedFlowRate;
|
type mappedFlowRate;
|
||||||
phi phi;
|
|
||||||
nbrPhi phiGas;
|
nbrPhi phiGas;
|
||||||
rho rho;
|
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,7 +43,7 @@ boundaryField
|
|||||||
sampleMode nearestPatchFace;
|
sampleMode nearestPatchFace;
|
||||||
samplePatch region0_to_panelRegion_fLeft_zone;
|
samplePatch region0_to_panelRegion_fLeft_zone;
|
||||||
offset (0 0 0);
|
offset (0 0 0);
|
||||||
fieldName Qr;
|
field Qr;
|
||||||
setAverage no;
|
setAverage no;
|
||||||
average 0;
|
average 0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
@ -56,7 +56,7 @@ boundaryField
|
|||||||
sampleMode nearestPatchFace;
|
sampleMode nearestPatchFace;
|
||||||
samplePatch region0_to_panelRegion_fRight_zone;
|
samplePatch region0_to_panelRegion_fRight_zone;
|
||||||
offset (0 0 0);
|
offset (0 0 0);
|
||||||
fieldName Qr;
|
field Qr;
|
||||||
setAverage no;
|
setAverage no;
|
||||||
average 0;
|
average 0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -41,8 +41,7 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type compressible::turbulentTemperatureRadCoupledMixed;
|
type compressible::turbulentTemperatureRadCoupledMixed;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa solidThermo;
|
kappaMethod solidThermo;
|
||||||
kappaName none;
|
|
||||||
QrNbr Qr;
|
QrNbr Qr;
|
||||||
Qr none;
|
Qr none;
|
||||||
value uniform 298.15;
|
value uniform 298.15;
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type greyDiffusiveRadiation;
|
type greyDiffusiveRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type greyDiffusiveRadiation;
|
type greyDiffusiveRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1;
|
emissivity uniform 1;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -25,7 +25,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type pressureInletOutletVelocity;
|
type pressureInletOutletVelocity;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
phi phi;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base
|
base
|
||||||
|
|||||||
@ -33,8 +33,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type totalPressure;
|
type totalPressure;
|
||||||
p0 $internalField;
|
p0 $internalField;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho none;
|
rho none;
|
||||||
psi none;
|
psi none;
|
||||||
gamma 1;
|
gamma 1;
|
||||||
|
|||||||
@ -33,8 +33,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type totalPressure;
|
type totalPressure;
|
||||||
p0 $internalField;
|
p0 $internalField;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho none;
|
rho none;
|
||||||
psi none;
|
psi none;
|
||||||
gamma 1;
|
gamma 1;
|
||||||
|
|||||||
@ -39,8 +39,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type totalPressure;
|
type totalPressure;
|
||||||
p0 $internalField;
|
p0 $internalField;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho none;
|
rho none;
|
||||||
psi none;
|
psi none;
|
||||||
gamma 1;
|
gamma 1;
|
||||||
|
|||||||
@ -36,8 +36,6 @@ boundaryField
|
|||||||
type totalTemperature;
|
type totalTemperature;
|
||||||
value uniform 297;
|
value uniform 297;
|
||||||
T0 uniform 297;
|
T0 uniform 297;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho none;
|
rho none;
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
|
|||||||
@ -30,8 +30,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type waveTransmissive;
|
type waveTransmissive;
|
||||||
field p;
|
field p;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
fieldInf 101325;
|
fieldInf 101325;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
@ -44,8 +42,6 @@ boundaryField
|
|||||||
type totalPressure;
|
type totalPressure;
|
||||||
value uniform 101325;
|
value uniform 101325;
|
||||||
p0 uniform 101325;
|
p0 uniform 101325;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho none;
|
rho none;
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
|
|||||||
@ -1241,8 +1241,6 @@ boundaryField
|
|||||||
freestream
|
freestream
|
||||||
{
|
{
|
||||||
type totalTemperature;
|
type totalTemperature;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
T0 uniform 297;
|
T0 uniform 297;
|
||||||
|
|||||||
@ -1233,8 +1233,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type waveTransmissive;
|
type waveTransmissive;
|
||||||
field p;
|
field p;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
fieldInf 101325;
|
fieldInf 101325;
|
||||||
@ -1272,8 +1270,6 @@ boundaryField
|
|||||||
freestream
|
freestream
|
||||||
{
|
{
|
||||||
type totalPressure;
|
type totalPressure;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho none;
|
rho none;
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
|
|||||||
@ -44,8 +44,6 @@ outlet
|
|||||||
type totalPressure;
|
type totalPressure;
|
||||||
value uniform 1e5;
|
value uniform 1e5;
|
||||||
p0 uniform 1e5;
|
p0 uniform 1e5;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho rho;
|
rho rho;
|
||||||
psi none;
|
psi none;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
|
|||||||
@ -24,8 +24,6 @@ boundaryField
|
|||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type flowRateInletVelocity;
|
type flowRateInletVelocity;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
massFlowRate 0.0001;
|
massFlowRate 0.0001;
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
@ -51,8 +49,6 @@ boundaryField
|
|||||||
plenum
|
plenum
|
||||||
{
|
{
|
||||||
type pressureInletVelocity;
|
type pressureInletVelocity;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
value uniform (0 0 0);
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,6 @@ boundaryField
|
|||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type waveTransmissive;
|
type waveTransmissive;
|
||||||
phi phi;
|
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.3;
|
gamma 1.3;
|
||||||
fieldInf 1e5;
|
fieldInf 1e5;
|
||||||
|
|||||||
@ -39,8 +39,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type totalPressure;
|
type totalPressure;
|
||||||
p0 $internalField;
|
p0 $internalField;
|
||||||
U U;
|
|
||||||
phi phi;
|
|
||||||
rho none;
|
rho none;
|
||||||
psi none;
|
psi none;
|
||||||
gamma 1;
|
gamma 1;
|
||||||
|
|||||||
@ -30,8 +30,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type waveTransmissive;
|
type waveTransmissive;
|
||||||
field p;
|
field p;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.4;
|
gamma 1.4;
|
||||||
fieldInf 1;
|
fieldInf 1;
|
||||||
|
|||||||
@ -29,8 +29,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type waveTransmissive;
|
type waveTransmissive;
|
||||||
field p;
|
field p;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.3;
|
gamma 1.3;
|
||||||
fieldInf 100000;
|
fieldInf 100000;
|
||||||
|
|||||||
@ -59,8 +59,6 @@ functions
|
|||||||
WALL10
|
WALL10
|
||||||
);
|
);
|
||||||
|
|
||||||
pName p;
|
|
||||||
UName U;
|
|
||||||
log true;
|
log true;
|
||||||
rhoInf 1;
|
rhoInf 1;
|
||||||
CofR (0 0 0);
|
CofR (0 0 0);
|
||||||
|
|||||||
@ -30,8 +30,6 @@ boundaryField
|
|||||||
{
|
{
|
||||||
type waveTransmissive;
|
type waveTransmissive;
|
||||||
field p;
|
field p;
|
||||||
phi phi;
|
|
||||||
rho rho;
|
|
||||||
psi thermo:psi;
|
psi thermo:psi;
|
||||||
gamma 1.3;
|
gamma 1.3;
|
||||||
fieldInf 100000;
|
fieldInf 100000;
|
||||||
|
|||||||
@ -24,8 +24,7 @@ boundaryField
|
|||||||
bottom
|
bottom
|
||||||
{
|
{
|
||||||
type compressible::thermalBaffle;
|
type compressible::thermalBaffle;
|
||||||
kappa solidThermo;
|
kappaMethod solidThermo;
|
||||||
kappaName none;
|
|
||||||
value uniform 300;
|
value uniform 300;
|
||||||
}
|
}
|
||||||
side
|
side
|
||||||
@ -35,8 +34,7 @@ boundaryField
|
|||||||
top
|
top
|
||||||
{
|
{
|
||||||
type compressible::thermalBaffle;
|
type compressible::thermalBaffle;
|
||||||
kappa solidThermo;
|
kappaMethod solidThermo;
|
||||||
kappaName none;
|
|
||||||
value uniform 300;
|
value uniform 300;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,18 +9,16 @@
|
|||||||
T
|
T
|
||||||
{
|
{
|
||||||
type compressible::thermalBaffle;
|
type compressible::thermalBaffle;
|
||||||
kappa fluidThermo;
|
kappaMethod fluidThermo;
|
||||||
kappaName none;
|
|
||||||
value uniform 300;
|
value uniform 300;
|
||||||
|
|
||||||
regionName ${baffleRegionName};
|
regionName ${baffleRegionName};
|
||||||
active yes;
|
active yes;
|
||||||
|
|
||||||
# include "3DbaffleSolidThermo"
|
# include "3DbaffleSolidThermo"
|
||||||
|
|
||||||
// New fvMesh (region) information
|
// New fvMesh (region) information
|
||||||
# include "extrudeModel"
|
# include "extrudeModel"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
@ -32,7 +31,6 @@ boundaryField
|
|||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
@ -41,7 +39,6 @@ boundaryField
|
|||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
@ -50,7 +47,6 @@ boundaryField
|
|||||||
box
|
box
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type MarshakRadiation;
|
type MarshakRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -23,7 +23,6 @@ boundaryField
|
|||||||
".*"
|
".*"
|
||||||
{
|
{
|
||||||
type greyDiffusiveRadiation;
|
type greyDiffusiveRadiation;
|
||||||
T T;
|
|
||||||
emissivityMode lookup;
|
emissivityMode lookup;
|
||||||
emissivity uniform 1.0;
|
emissivity uniform 1.0;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
|
|||||||
@ -52,24 +52,21 @@ boundaryField
|
|||||||
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
||||||
value uniform 300;
|
value uniform 300;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa fluidThermo;
|
kappaMethod fluidthermo;
|
||||||
kappaName none;
|
|
||||||
}
|
}
|
||||||
bottomWater_to_leftSolid
|
bottomWater_to_leftSolid
|
||||||
{
|
{
|
||||||
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
||||||
value uniform 300;
|
value uniform 300;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa fluidThermo;
|
kappaMethod fluidthermo;
|
||||||
kappaName none;
|
|
||||||
}
|
}
|
||||||
bottomWater_to_heater
|
bottomWater_to_heater
|
||||||
{
|
{
|
||||||
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
||||||
value uniform 300;
|
value uniform 300;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa fluidThermo;
|
kappaMethod fluidthermo;
|
||||||
kappaName none;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -70,8 +70,7 @@ dictionaryReplacement
|
|||||||
{
|
{
|
||||||
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
type compressible::turbulentTemperatureCoupledBaffleMixed;
|
||||||
Tnbr T;
|
Tnbr T;
|
||||||
kappa fluidThermo;
|
kappaMethod fluidThermo;
|
||||||
kappaName none;
|
|
||||||
value uniform 300;
|
value uniform 300;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user