mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: add fa/fv namespace qualifiers for fa/fv option
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2017 OpenFOAM Foundation
|
Copyright (C) 2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -122,7 +122,7 @@ Foam::fv::VoFSolidificationMeltingSource::VoFSolidificationMeltingSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
alphaSolidT_(Function1<scalar>::New("alphaSolidT", coeffs_)),
|
alphaSolidT_(Function1<scalar>::New("alphaSolidT", coeffs_)),
|
||||||
L_("L", dimEnergy/dimMass, coeffs_),
|
L_("L", dimEnergy/dimMass, coeffs_),
|
||||||
relax_(coeffs_.getOrDefault("relax", 0.9)),
|
relax_(coeffs_.getOrDefault("relax", 0.9)),
|
||||||
|
|||||||
@ -99,7 +99,7 @@ namespace fv
|
|||||||
|
|
||||||
class VoFSolidificationMeltingSource
|
class VoFSolidificationMeltingSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,7 @@ License
|
|||||||
|
|
||||||
bool Foam::fv::VoFSolidificationMeltingSource::read(const dictionary& dict)
|
bool Foam::fv::VoFSolidificationMeltingSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
alphaSolidT_ = Function1<scalar>::New("alphaSolidT", coeffs_);
|
alphaSolidT_ = Function1<scalar>::New("alphaSolidT", coeffs_);
|
||||||
coeffs_.readEntry("L", L_);
|
coeffs_.readEntry("L", L_);
|
||||||
|
|||||||
@ -51,7 +51,7 @@ Foam::fv::atmAmbientTurbSource::atmAmbientTurbSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
isEpsilon_(true),
|
isEpsilon_(true),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
kAmb_
|
kAmb_
|
||||||
|
|||||||
@ -130,7 +130,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmAmbientTurbSource
|
class atmAmbientTurbSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -133,7 +133,7 @@ Foam::fv::atmBuoyancyTurbSource::atmBuoyancyTurbSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
isEpsilon_(true),
|
isEpsilon_(true),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
Lmax_
|
Lmax_
|
||||||
|
|||||||
@ -145,7 +145,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmBuoyancyTurbSource
|
class atmBuoyancyTurbSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -68,7 +68,7 @@ Foam::fv::atmCoriolisUSource::atmCoriolisUSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
latitude_
|
latitude_
|
||||||
(
|
(
|
||||||
coeffs_.getCheckOrDefault<scalar>
|
coeffs_.getCheckOrDefault<scalar>
|
||||||
|
|||||||
@ -146,7 +146,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmCoriolisUSource
|
class atmCoriolisUSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ Foam::fv::atmLengthScaleTurbSource::atmLengthScaleTurbSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
isEpsilon_(true),
|
isEpsilon_(true),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
Lmax_
|
Lmax_
|
||||||
|
|||||||
@ -133,7 +133,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmLengthScaleTurbSource
|
class atmLengthScaleTurbSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -51,7 +51,7 @@ Foam::fv::atmNutSource::atmNutSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
artNutName_(dict.getOrDefault<word>("nut", "artNut")),
|
artNutName_(dict.getOrDefault<word>("nut", "artNut")),
|
||||||
artNut_
|
artNut_
|
||||||
(
|
(
|
||||||
|
|||||||
@ -102,7 +102,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmNutSource
|
class atmNutSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -51,7 +51,7 @@ Foam::fv::atmPlantCanopyTSource::atmPlantCanopyTSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
Cp0_
|
Cp0_
|
||||||
(
|
(
|
||||||
|
|||||||
@ -105,7 +105,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmPlantCanopyTSource
|
class atmPlantCanopyTSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,7 @@ Foam::fv::atmPlantCanopyTurbSource::atmPlantCanopyTurbSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
isEpsilon_(true),
|
isEpsilon_(true),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
Cmu_(Zero),
|
Cmu_(Zero),
|
||||||
|
|||||||
@ -114,7 +114,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmPlantCanopyTurbSource
|
class atmPlantCanopyTurbSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -51,7 +51,7 @@ Foam::fv::atmPlantCanopyUSource::atmPlantCanopyUSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
plantCd_
|
plantCd_
|
||||||
(
|
(
|
||||||
|
|||||||
@ -113,7 +113,7 @@ namespace fv
|
|||||||
|
|
||||||
class atmPlantCanopyUSource
|
class atmPlantCanopyUSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2019-2020 OpenCFD Ltd.
|
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -181,7 +181,7 @@ Foam::fa::faceSetOption::faceSetOption
|
|||||||
const fvPatch& patch
|
const fvPatch& patch
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, patch),
|
fa::option(name, modelType, dict, patch),
|
||||||
timeStart_(-1.0),
|
timeStart_(-1.0),
|
||||||
duration_(0.0),
|
duration_(0.0),
|
||||||
selectionMode_(selectionModeTypeNames_.get("selectionMode", coeffs_)),
|
selectionMode_(selectionModeTypeNames_.get("selectionMode", coeffs_)),
|
||||||
|
|||||||
@ -54,7 +54,7 @@ Foam::fa::contactHeatFluxSource::contactHeatFluxSource
|
|||||||
const fvPatch& patch
|
const fvPatch& patch
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
faceSetOption(sourceName, modelType, dict, patch),
|
fa::faceSetOption(sourceName, modelType, dict, patch),
|
||||||
temperatureCoupledBase(patch, dict),
|
temperatureCoupledBase(patch, dict),
|
||||||
TName_(dict.getOrDefault<word>("T", "T")),
|
TName_(dict.getOrDefault<word>("T", "T")),
|
||||||
TprimaryName_(dict.get<word>("Tprimary")),
|
TprimaryName_(dict.get<word>("Tprimary")),
|
||||||
@ -175,7 +175,7 @@ void Foam::fa::contactHeatFluxSource::addSup
|
|||||||
|
|
||||||
bool Foam::fa::contactHeatFluxSource::read(const dictionary& dict)
|
bool Foam::fa::contactHeatFluxSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fa::option::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readIfPresent("T", TName_);
|
coeffs_.readIfPresent("T", TName_);
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@ Foam::fa::externalFileSource::externalFileSource
|
|||||||
const fvPatch& p
|
const fvPatch& p
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
faceSetOption(sourceName, modelType, dict, p),
|
fa::faceSetOption(sourceName, modelType, dict, p),
|
||||||
fieldName_(dict.get<word>("fieldName")),
|
fieldName_(dict.get<word>("fieldName")),
|
||||||
tableName_(dict.get<word>("tableName")),
|
tableName_(dict.get<word>("tableName")),
|
||||||
pExt_
|
pExt_
|
||||||
@ -118,7 +118,7 @@ void Foam::fa::externalFileSource::addSup
|
|||||||
|
|
||||||
bool Foam::fa::externalFileSource::read(const dictionary& dict)
|
bool Foam::fa::externalFileSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fa::option::read(dict))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,7 @@ Foam::fa::externalHeatFluxSource::externalHeatFluxSource
|
|||||||
const fvPatch& patch
|
const fvPatch& patch
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
faceSetOption(sourceName, modelType, dict, patch),
|
fa::faceSetOption(sourceName, modelType, dict, patch),
|
||||||
mode_(operationModeNames.get("mode", dict)),
|
mode_(operationModeNames.get("mode", dict)),
|
||||||
TName_(dict.getOrDefault<word>("T", "T")),
|
TName_(dict.getOrDefault<word>("T", "T")),
|
||||||
Q_(0),
|
Q_(0),
|
||||||
@ -172,7 +172,7 @@ void Foam::fa::externalHeatFluxSource::addSup
|
|||||||
|
|
||||||
bool Foam::fa::externalHeatFluxSource::read(const dictionary& dict)
|
bool Foam::fa::externalHeatFluxSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fa::option::read(dict))
|
||||||
{
|
{
|
||||||
dict.readIfPresent("T", TName_);
|
dict.readIfPresent("T", TName_);
|
||||||
dict.readIfPresent("emissivity", emissivity_);
|
dict.readIfPresent("emissivity", emissivity_);
|
||||||
|
|||||||
@ -52,7 +52,7 @@ Foam::fa::jouleHeatingSource::jouleHeatingSource
|
|||||||
const fvPatch& patch
|
const fvPatch& patch
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
faceSetOption(sourceName, modelType, dict, patch),
|
fa::faceSetOption(sourceName, modelType, dict, patch),
|
||||||
TName_(dict.getOrDefault<word>("T", "T")),
|
TName_(dict.getOrDefault<word>("T", "T")),
|
||||||
V_
|
V_
|
||||||
(
|
(
|
||||||
@ -174,7 +174,7 @@ void Foam::fa::jouleHeatingSource::addSup
|
|||||||
|
|
||||||
bool Foam::fa::jouleHeatingSource::read(const dictionary& dict)
|
bool Foam::fa::jouleHeatingSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fa::option::read(dict))
|
||||||
{
|
{
|
||||||
dict.readIfPresent("T", TName_);
|
dict.readIfPresent("T", TName_);
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2017-2020 OpenCFD Ltd.
|
Copyright (C) 2017-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -204,7 +204,7 @@ Foam::fv::cellSetOption::cellSetOption
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
fv::option(name, modelType, dict, mesh),
|
||||||
timeStart_(-1.0),
|
timeStart_(-1.0),
|
||||||
duration_(0.0),
|
duration_(0.0),
|
||||||
selectionMode_(selectionModeTypeNames_.get("selectionMode", coeffs_)),
|
selectionMode_(selectionModeTypeNames_.get("selectionMode", coeffs_)),
|
||||||
@ -224,7 +224,7 @@ Foam::fv::cellSetOption::cellSetOption
|
|||||||
|
|
||||||
bool Foam::fv::cellSetOption::isActive()
|
bool Foam::fv::cellSetOption::isActive()
|
||||||
{
|
{
|
||||||
if (option::isActive() && inTimeLimits(mesh_.time().value()))
|
if (fv::option::isActive() && inTimeLimits(mesh_.time().value()))
|
||||||
{
|
{
|
||||||
// Update the cell set if the mesh is changing
|
// Update the cell set if the mesh is changing
|
||||||
if (mesh_.changing())
|
if (mesh_.changing())
|
||||||
@ -254,7 +254,7 @@ bool Foam::fv::cellSetOption::isActive()
|
|||||||
|
|
||||||
bool Foam::fv::cellSetOption::read(const dictionary& dict)
|
bool Foam::fv::cellSetOption::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
if (coeffs_.readIfPresent("timeStart", timeStart_))
|
if (coeffs_.readIfPresent("timeStart", timeStart_))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -69,7 +69,7 @@ Foam::fv::fixedTemperatureConstraint::fixedTemperatureConstraint
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
mode_(temperatureModeNames_.get("mode", coeffs_)),
|
mode_(temperatureModeNames_.get("mode", coeffs_)),
|
||||||
Tuniform_(nullptr),
|
Tuniform_(nullptr),
|
||||||
TName_("T")
|
TName_("T")
|
||||||
@ -146,7 +146,7 @@ void Foam::fv::fixedTemperatureConstraint::constrain
|
|||||||
|
|
||||||
bool Foam::fv::fixedTemperatureConstraint::read(const dictionary& dict)
|
bool Foam::fv::fixedTemperatureConstraint::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
if (coeffs_.found(Tuniform_->name()))
|
if (coeffs_.found(Tuniform_->name()))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -119,7 +119,7 @@ namespace fv
|
|||||||
|
|
||||||
class fixedTemperatureConstraint
|
class fixedTemperatureConstraint
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -96,7 +96,7 @@ Foam::fv::velocityDampingConstraint::velocityDampingConstraint
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh)
|
fv::cellSetOption(name, modelType, dict, mesh)
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
}
|
}
|
||||||
@ -122,7 +122,7 @@ void Foam::fv::velocityDampingConstraint::writeData(Ostream& os) const
|
|||||||
|
|
||||||
bool Foam::fv::velocityDampingConstraint::read(const dictionary& dict)
|
bool Foam::fv::velocityDampingConstraint::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("UMax", UMax_);
|
coeffs_.readEntry("UMax", UMax_);
|
||||||
|
|
||||||
|
|||||||
@ -118,7 +118,7 @@ namespace fv
|
|||||||
|
|
||||||
class velocityDampingConstraint
|
class velocityDampingConstraint
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ Foam::fv::FixedValueConstraint<Type>::FixedValueConstraint
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh)
|
fv::cellSetOption(name, modelType, dict, mesh)
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ Foam::fv::FixedValueConstraint<Type>::FixedValueConstraint
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
bool Foam::fv::FixedValueConstraint<Type>::read(const dictionary& dict)
|
bool Foam::fv::FixedValueConstraint<Type>::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
const dictionary& fieldValuesDict = coeffs_.subDict("fieldValues");
|
const dictionary& fieldValuesDict = coeffs_.subDict("fieldValues");
|
||||||
|
|
||||||
|
|||||||
@ -116,7 +116,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class FixedValueConstraint
|
class FixedValueConstraint
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@ Foam::fv::limitTemperature::limitTemperature
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
Tmin_(coeffs_.get<scalar>("min")),
|
Tmin_(coeffs_.get<scalar>("min")),
|
||||||
Tmax_(coeffs_.get<scalar>("max")),
|
Tmax_(coeffs_.get<scalar>("max")),
|
||||||
phase_(coeffs_.getOrDefault<word>("phase", word::null))
|
phase_(coeffs_.getOrDefault<word>("phase", word::null))
|
||||||
@ -76,7 +76,7 @@ Foam::fv::limitTemperature::limitTemperature
|
|||||||
|
|
||||||
bool Foam::fv::limitTemperature::read(const dictionary& dict)
|
bool Foam::fv::limitTemperature::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("min", Tmin_);
|
coeffs_.readEntry("min", Tmin_);
|
||||||
coeffs_.readEntry("max", Tmax_);
|
coeffs_.readEntry("max", Tmax_);
|
||||||
|
|||||||
@ -104,7 +104,7 @@ namespace fv
|
|||||||
|
|
||||||
class limitTemperature
|
class limitTemperature
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ Foam::fv::limitVelocity::limitVelocity
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
UName_(coeffs_.getOrDefault<word>("U", "U")),
|
UName_(coeffs_.getOrDefault<word>("U", "U")),
|
||||||
max_(coeffs_.get<scalar>("max"))
|
max_(coeffs_.get<scalar>("max"))
|
||||||
{
|
{
|
||||||
@ -65,7 +65,7 @@ Foam::fv::limitVelocity::limitVelocity
|
|||||||
|
|
||||||
bool Foam::fv::limitVelocity::read(const dictionary& dict)
|
bool Foam::fv::limitVelocity::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("max", max_);
|
coeffs_.readEntry("max", max_);
|
||||||
|
|
||||||
|
|||||||
@ -98,7 +98,7 @@ namespace fv
|
|||||||
|
|
||||||
class limitVelocity
|
class limitVelocity
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
@ -126,7 +126,7 @@ Foam::fv::interRegionOption::interRegionOption
|
|||||||
|
|
||||||
bool Foam::fv::interRegionOption::read(const dictionary& dict)
|
bool Foam::fv::interRegionOption::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,7 +84,7 @@ Foam::fv::acousticDampingSource::acousticDampingSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
blendFactor_
|
blendFactor_
|
||||||
(
|
(
|
||||||
volScalarField
|
volScalarField
|
||||||
@ -174,7 +174,7 @@ void Foam::fv::acousticDampingSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::acousticDampingSource::read(const dictionary& dict)
|
bool Foam::fv::acousticDampingSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
if (!coeffs_.readIfPresent("UNames", fieldNames_))
|
if (!coeffs_.readIfPresent("UNames", fieldNames_))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -120,7 +120,7 @@ namespace fv
|
|||||||
|
|
||||||
class acousticDampingSource
|
class acousticDampingSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
@ -169,7 +169,7 @@ Foam::fv::actuationDiskSource::actuationDiskSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
writeFile(mesh, name, modelType, coeffs_),
|
writeFile(mesh, name, modelType, coeffs_),
|
||||||
forceMethod_
|
forceMethod_
|
||||||
(
|
(
|
||||||
@ -278,7 +278,7 @@ void Foam::fv::actuationDiskSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::actuationDiskSource::read(const dictionary& dict)
|
bool Foam::fv::actuationDiskSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict) && writeFile::read(dict))
|
if (fv::cellSetOption::read(dict) && writeFile::read(dict))
|
||||||
{
|
{
|
||||||
dict.readIfPresent("sink", sink_);
|
dict.readIfPresent("sink", sink_);
|
||||||
dict.readIfPresent("writeFileStart", writeFileStart_);
|
dict.readIfPresent("writeFileStart", writeFileStart_);
|
||||||
|
|||||||
@ -227,7 +227,7 @@ namespace fv
|
|||||||
|
|
||||||
class actuationDiskSource
|
class actuationDiskSource
|
||||||
:
|
:
|
||||||
public cellSetOption,
|
public fv::cellSetOption,
|
||||||
public functionObjects::writeFile
|
public functionObjects::writeFile
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@ -53,7 +53,7 @@ Foam::fv::buoyancyEnergy::buoyancyEnergy
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(sourceName, modelType, dict, mesh),
|
fv::option(sourceName, modelType, dict, mesh),
|
||||||
UName_(coeffs_.getOrDefault<word>("U", "U"))
|
UName_(coeffs_.getOrDefault<word>("U", "U"))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("fields", fieldNames_);
|
coeffs_.readEntry("fields", fieldNames_);
|
||||||
@ -88,7 +88,7 @@ void Foam::fv::buoyancyEnergy::addSup
|
|||||||
|
|
||||||
bool Foam::fv::buoyancyEnergy::read(const dictionary& dict)
|
bool Foam::fv::buoyancyEnergy::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readIfPresent("UName", UName_);
|
coeffs_.readIfPresent("UName", UName_);
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@ Foam::fv::buoyancyForce::buoyancyForce
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(sourceName, modelType, dict, mesh),
|
fv::option(sourceName, modelType, dict, mesh),
|
||||||
g_(meshObjects::gravity::New(mesh.time()))
|
g_(meshObjects::gravity::New(mesh.time()))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("fields", fieldNames_);
|
coeffs_.readEntry("fields", fieldNames_);
|
||||||
|
|||||||
@ -134,7 +134,7 @@ Foam::fv::buoyancyTurbSource::buoyancyTurbSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
isEpsilon_(false),
|
isEpsilon_(false),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
alphatName_(coeffs_.getOrDefault<word>("alphat", "alphat")),
|
alphatName_(coeffs_.getOrDefault<word>("alphat", "alphat")),
|
||||||
|
|||||||
@ -182,7 +182,7 @@ namespace fv
|
|||||||
|
|
||||||
class buoyancyTurbSource
|
class buoyancyTurbSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
// Private Data
|
// Private Data
|
||||||
|
|
||||||
|
|||||||
@ -161,7 +161,7 @@ directionalPressureGradientExplicitSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
model_(pressureDropModelNames_.get("model", coeffs_)),
|
model_(pressureDropModelNames_.get("model", coeffs_)),
|
||||||
gradP0_(cells_.size(), Zero),
|
gradP0_(cells_.size(), Zero),
|
||||||
dGradP_(cells_.size(), Zero),
|
dGradP_(cells_.size(), Zero),
|
||||||
|
|||||||
@ -140,7 +140,7 @@ namespace fv
|
|||||||
|
|
||||||
class directionalPressureGradientExplicitSource
|
class directionalPressureGradientExplicitSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -135,7 +135,7 @@ Foam::fv::effectivenessHeatExchangerSource::effectivenessHeatExchangerSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
secondaryMassFlowRate_(0),
|
secondaryMassFlowRate_(0),
|
||||||
secondaryInletT_(0),
|
secondaryInletT_(0),
|
||||||
primaryInletT_(0),
|
primaryInletT_(0),
|
||||||
@ -306,7 +306,7 @@ void Foam::fv::effectivenessHeatExchangerSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::effectivenessHeatExchangerSource::read(const dictionary& dict)
|
bool Foam::fv::effectivenessHeatExchangerSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
UName_ = coeffs_.getOrDefault<word>("U", "U");
|
UName_ = coeffs_.getOrDefault<word>("U", "U");
|
||||||
TName_ = coeffs_.getOrDefault<word>("T", "T");
|
TName_ = coeffs_.getOrDefault<word>("T", "T");
|
||||||
|
|||||||
@ -218,7 +218,7 @@ namespace fv
|
|||||||
|
|
||||||
class effectivenessHeatExchangerSource
|
class effectivenessHeatExchangerSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,7 @@ Foam::fv::explicitPorositySource::explicitPorositySource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
porosityPtr_(nullptr)
|
porosityPtr_(nullptr)
|
||||||
{
|
{
|
||||||
read(dict);
|
read(dict);
|
||||||
@ -115,7 +115,7 @@ void Foam::fv::explicitPorositySource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::explicitPorositySource::read(const dictionary& dict)
|
bool Foam::fv::explicitPorositySource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
if (!coeffs_.readIfPresent("UNames", fieldNames_))
|
if (!coeffs_.readIfPresent("UNames", fieldNames_))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -136,7 +136,7 @@ namespace fv
|
|||||||
|
|
||||||
class explicitPorositySource
|
class explicitPorositySource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
@ -109,7 +109,7 @@ Foam::fv::jouleHeatingSource::jouleHeatingSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(sourceName, modelType, dict, mesh),
|
fv::option(sourceName, modelType, dict, mesh),
|
||||||
TName_("T"),
|
TName_("T"),
|
||||||
V_
|
V_
|
||||||
(
|
(
|
||||||
@ -203,7 +203,7 @@ void Foam::fv::jouleHeatingSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::jouleHeatingSource::read(const dictionary& dict)
|
bool Foam::fv::jouleHeatingSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readIfPresent("T", TName_);
|
coeffs_.readIfPresent("T", TName_);
|
||||||
|
|
||||||
|
|||||||
@ -82,7 +82,7 @@ Foam::fv::meanVelocityForce::meanVelocityForce
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
Ubar_(coeffs_.get<vector>("Ubar")),
|
Ubar_(coeffs_.get<vector>("Ubar")),
|
||||||
gradP0_(0.0),
|
gradP0_(0.0),
|
||||||
dGradP_(0.0),
|
dGradP_(0.0),
|
||||||
|
|||||||
@ -112,7 +112,7 @@ namespace fv
|
|||||||
|
|
||||||
class meanVelocityForce
|
class meanVelocityForce
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ Foam::fv::multiphaseStabilizedTurbulence::multiphaseStabilizedTurbulence
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(sourceName, modelType, dict, mesh),
|
fv::option(sourceName, modelType, dict, mesh),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "rho")),
|
||||||
Cmu_
|
Cmu_
|
||||||
(
|
(
|
||||||
|
|||||||
@ -42,7 +42,7 @@ Foam::fv::PhaseLimitStabilization<Type>::PhaseLimitStabilization
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
fv::option(name, modelType, dict, mesh),
|
||||||
fieldName_(coeffs_.get<word>("field")),
|
fieldName_(coeffs_.get<word>("field")),
|
||||||
rateName_(coeffs_.get<word>("rate")),
|
rateName_(coeffs_.get<word>("rate")),
|
||||||
residualAlpha_(coeffs_.get<scalar>("residualAlpha"))
|
residualAlpha_(coeffs_.get<scalar>("residualAlpha"))
|
||||||
@ -75,7 +75,7 @@ void Foam::fv::PhaseLimitStabilization<Type>::addSup
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
bool Foam::fv::PhaseLimitStabilization<Type>::read(const dictionary& dict)
|
bool Foam::fv::PhaseLimitStabilization<Type>::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("residualAlpha", residualAlpha_);
|
coeffs_.readEntry("residualAlpha", residualAlpha_);
|
||||||
|
|
||||||
|
|||||||
@ -452,7 +452,7 @@ Foam::fv::rotorDiskSource::rotorDiskSource
|
|||||||
|
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
rhoRef_(1.0),
|
rhoRef_(1.0),
|
||||||
omega_(0.0),
|
omega_(0.0),
|
||||||
nBlades_(0),
|
nBlades_(0),
|
||||||
@ -545,7 +545,7 @@ void Foam::fv::rotorDiskSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::rotorDiskSource::read(const dictionary& dict)
|
bool Foam::fv::rotorDiskSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("fields", fieldNames_);
|
coeffs_.readEntry("fields", fieldNames_);
|
||||||
fv::option::resetApplied();
|
fv::option::resetApplied();
|
||||||
|
|||||||
@ -204,7 +204,7 @@ namespace fv
|
|||||||
|
|
||||||
class rotorDiskSource
|
class rotorDiskSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -162,7 +162,7 @@ Foam::fv::solidificationMeltingSource::solidificationMeltingSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(sourceName, modelType, dict, mesh),
|
fv::cellSetOption(sourceName, modelType, dict, mesh),
|
||||||
Tmelt_(coeffs_.get<scalar>("Tmelt")),
|
Tmelt_(coeffs_.get<scalar>("Tmelt")),
|
||||||
L_(coeffs_.get<scalar>("L")),
|
L_(coeffs_.get<scalar>("L")),
|
||||||
relax_(coeffs_.getOrDefault<scalar>("relax", 0.9)),
|
relax_(coeffs_.getOrDefault<scalar>("relax", 0.9)),
|
||||||
@ -296,7 +296,7 @@ void Foam::fv::solidificationMeltingSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::solidificationMeltingSource::read(const dictionary& dict)
|
bool Foam::fv::solidificationMeltingSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readEntry("Tmelt", Tmelt_);
|
coeffs_.readEntry("Tmelt", Tmelt_);
|
||||||
coeffs_.readEntry("L", L_);
|
coeffs_.readEntry("L", L_);
|
||||||
|
|||||||
@ -153,7 +153,7 @@ namespace fv
|
|||||||
|
|
||||||
class solidificationMeltingSource
|
class solidificationMeltingSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,7 @@ Foam::fv::tabulatedAccelerationSource::tabulatedAccelerationSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
fv::option(name, modelType, dict, mesh),
|
||||||
motion_(coeffs_, mesh.time()),
|
motion_(coeffs_, mesh.time()),
|
||||||
UName_(coeffs_.getOrDefault<word>("U", "U")),
|
UName_(coeffs_.getOrDefault<word>("U", "U")),
|
||||||
g0_("g0", dimAcceleration, Zero)
|
g0_("g0", dimAcceleration, Zero)
|
||||||
@ -94,7 +94,7 @@ void Foam::fv::tabulatedAccelerationSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::tabulatedAccelerationSource::read(const dictionary& dict)
|
bool Foam::fv::tabulatedAccelerationSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
return motion_.read(coeffs_);
|
return motion_.read(coeffs_);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -89,7 +89,7 @@ Foam::fv::viscousDissipation::viscousDissipation
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(sourceName, modelType, dict, mesh),
|
fv::option(sourceName, modelType, dict, mesh),
|
||||||
UName_(coeffs_.getOrDefault<word>("U", "U")),
|
UName_(coeffs_.getOrDefault<word>("U", "U")),
|
||||||
rhoName_(coeffs_.getOrDefault<word>("rho", "none")),
|
rhoName_(coeffs_.getOrDefault<word>("rho", "none")),
|
||||||
rho_
|
rho_
|
||||||
|
|||||||
@ -117,7 +117,7 @@ Foam::fv::SemiImplicitSource<Type>::SemiImplicitSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
cellSetOption(name, modelType, dict, mesh),
|
fv::cellSetOption(name, modelType, dict, mesh),
|
||||||
volumeMode_(vmAbsolute),
|
volumeMode_(vmAbsolute),
|
||||||
VDash_(1.0)
|
VDash_(1.0)
|
||||||
{
|
{
|
||||||
@ -203,7 +203,7 @@ void Foam::fv::SemiImplicitSource<Type>::addSup
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
bool Foam::fv::SemiImplicitSource<Type>::read(const dictionary& dict)
|
bool Foam::fv::SemiImplicitSource<Type>::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (cellSetOption::read(dict))
|
if (fv::cellSetOption::read(dict))
|
||||||
{
|
{
|
||||||
volumeMode_ = volumeModeTypeNames_.get("volumeMode", coeffs_);
|
volumeMode_ = volumeModeTypeNames_.get("volumeMode", coeffs_);
|
||||||
setFieldData(coeffs_.subDict("injectionRateSuSp"));
|
setFieldData(coeffs_.subDict("injectionRateSuSp"));
|
||||||
|
|||||||
@ -146,7 +146,7 @@ Ostream& operator<<
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class SemiImplicitSource
|
class SemiImplicitSource
|
||||||
:
|
:
|
||||||
public cellSetOption
|
public fv::cellSetOption
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -254,7 +254,7 @@ void Foam::fv::tabulatedNTUHeatTransfer::calculateHtc()
|
|||||||
|
|
||||||
bool Foam::fv::tabulatedNTUHeatTransfer::read(const dictionary& dict)
|
bool Foam::fv::tabulatedNTUHeatTransfer::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
coeffs_.readIfPresent("U", UName_);
|
coeffs_.readIfPresent("U", UName_);
|
||||||
coeffs_.readIfPresent("UNbr", UNbrName_);
|
coeffs_.readIfPresent("UNbr", UNbrName_);
|
||||||
|
|||||||
@ -53,7 +53,7 @@ Foam::fv::radiation::radiation
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(sourceName, modelType, dict, mesh)
|
fv::option(sourceName, modelType, dict, mesh)
|
||||||
{
|
{
|
||||||
const auto& thermo = mesh_.lookupObject<basicThermo>(basicThermo::dictName);
|
const auto& thermo = mesh_.lookupObject<basicThermo>(basicThermo::dictName);
|
||||||
|
|
||||||
|
|||||||
@ -153,7 +153,7 @@ Foam::fv::multiphaseMangrovesSource::multiphaseMangrovesSource
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
fv::option(name, modelType, dict, mesh),
|
||||||
aZone_(),
|
aZone_(),
|
||||||
NZone_(),
|
NZone_(),
|
||||||
CmZone_(),
|
CmZone_(),
|
||||||
@ -206,7 +206,7 @@ void Foam::fv::multiphaseMangrovesSource::addSup
|
|||||||
|
|
||||||
bool Foam::fv::multiphaseMangrovesSource::read(const dictionary& dict)
|
bool Foam::fv::multiphaseMangrovesSource::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
if (!coeffs_.readIfPresent("UNames", fieldNames_))
|
if (!coeffs_.readIfPresent("UNames", fieldNames_))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -154,7 +154,7 @@ Foam::fv::multiphaseMangrovesTurbulenceModel::multiphaseMangrovesTurbulenceModel
|
|||||||
const fvMesh& mesh
|
const fvMesh& mesh
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
option(name, modelType, dict, mesh),
|
fv::option(name, modelType, dict, mesh),
|
||||||
aZone_(),
|
aZone_(),
|
||||||
NZone_(),
|
NZone_(),
|
||||||
CkpZone_(),
|
CkpZone_(),
|
||||||
@ -227,7 +227,7 @@ void Foam::fv::multiphaseMangrovesTurbulenceModel::addSup
|
|||||||
|
|
||||||
bool Foam::fv::multiphaseMangrovesTurbulenceModel::read(const dictionary& dict)
|
bool Foam::fv::multiphaseMangrovesTurbulenceModel::read(const dictionary& dict)
|
||||||
{
|
{
|
||||||
if (option::read(dict))
|
if (fv::option::read(dict))
|
||||||
{
|
{
|
||||||
if (!coeffs_.readIfPresent("epsilonNames", fieldNames_))
|
if (!coeffs_.readIfPresent("epsilonNames", fieldNames_))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user