Skip to content

OpenFOAM+ v. 2212 version of the library #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Sources/controllerModels/controllerModel/controllerModel.C
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ autoPtr<controllerModel> controllerModel::New

Info<< "Selecting controllerModel type " << modelType << endl;

dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(modelType);
auto cstrIter =
dictionaryConstructorTablePtr_->find(modelType);

if (cstrIter == dictionaryConstructorTablePtr_->end())
{
FatalErrorIn
(
"controllerModel::New(const word&, const dictionary&, const fvMesh&)"
) << "Unknown Model type " << modelType << nl << nl
<< "Valid model types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError);
FatalErrorIn
(
"controllerModel::New(const word&, const dictionary&, const fvMesh&)"
) << "Unknown Model type " << modelType << nl << nl
<< "Valid model types are:" << nl
<< dictionaryConstructorTablePtr_->sortedToc()
<< exit(FatalError);
}

return autoPtr<controllerModel>(cstrIter()(name, modelType, parentDict, time));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Class
Foam::fv::limitScalarFieldConstraint

Description
Fixed temperature equation constraint
Limits scalar field values by specifying minimum boundary.

Sources described by:

Expand All @@ -34,10 +34,12 @@ Description
mode uniform; // uniform or lookup

// uniform option
temperature constant 500; // fixed temperature with time [K]
minFieldValue constant 500; // fixed temperature with time 500[K]

scaleCoeff 1;

// lookup option
// TName T; // optional temperature field name
fieldName T; // optional scalar field name
}

Note:
Expand All @@ -53,7 +55,7 @@ SourceFiles
#define limitScalarFieldConstraint_H

#include "cellSetOption.H"
#include "NamedEnum.H"
#include "Enum.H"
#include "Function1.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Expand Down Expand Up @@ -82,7 +84,7 @@ protected:
//-
scalar scaleCoeff_;

//- Temperature field name
//- Scalar field name
word fieldName_;


Expand Down