Foam::cellShapeControl::cellShapeControl ( const Time& runTime, const cvControls& foamyHexMeshControls, const searchableSurfaces& allGeometry, const conformationSurfaces& geometryToConformTo ) : dictionary ( foamyHexMeshControls.foamyHexMeshDict().subDict("motionControl") ), runTime_(runTime), allGeometry_(allGeometry), geometryToConformTo_(geometryToConformTo), defaultCellSize_(foamyHexMeshControls.defaultCellSize()), minimumCellSize_(foamyHexMeshControls.minimumCellSize()), shapeControlMesh_(runTime), aspectRatio_(*this), sizeAndAlignment_ ( runTime, subDict("shapeControlFunctions"), geometryToConformTo_, defaultCellSize_ ) {}
initialPointsMethod::initialPointsMethod ( const word& type, const dictionary& initialPointsDict, const Time& runTime, Random& rndGen, const conformationSurfaces& geometryToConformTo, const cellShapeControl& cellShapeControls, const autoPtr<backgroundMeshDecomposition>& decomposition ) : dictionary(initialPointsDict), runTime_(runTime), rndGen_(rndGen), geometryToConformTo_(geometryToConformTo), cellShapeControls_(cellShapeControls), decomposition_(decomposition), detailsDict_(subDict(type + "Coeffs")), minimumSurfaceDistanceCoeffSqr_ ( sqr ( readScalar ( initialPointsDict.lookup("minimumSurfaceDistanceCoeff") ) ) ), fixInitialPoints_(Switch(initialPointsDict.lookup("fixInitialPoints"))) {}
faceAreaWeightModel::faceAreaWeightModel ( const word& type, const dictionary& relaxationDict ) : dictionary(relaxationDict), coeffDict_(subDict(type + "Coeffs")) {}
relaxationModel::relaxationModel ( const word& type, const dictionary& relaxationDict, const Time& runTime ) : dictionary(relaxationDict), runTime_(runTime), coeffDict_(subDict(type + "Coeffs")) {}
const Foam::dictionary& Foam::fvSchemes::schemesDict() const { if (found("select")) { return subDict(word(lookup("select"))); } else { return *this; } }
bool thermalModel::read() { if (regIOobject::read()) { lawPtr_ = thermalLaw::New("law", T_, subDict("thermal")); return true; } else { return false; } }
thermalModel::thermalModel(const volScalarField& T) : IOdictionary ( IOobject ( "thermalProperties", T.time().constant(), T.db(), IOobject::MUST_READ, IOobject::NO_WRITE ) ), T_(T), lawPtr_(thermalLaw::New("law", T_, subDict("thermal"))) {}
Foam::surfaceCellSizeFunction::surfaceCellSizeFunction ( const word& type, const dictionary& surfaceCellSizeFunctionDict, const searchableSurface& surface, const scalar& defaultCellSize ) : dictionary(surfaceCellSizeFunctionDict), surface_(surface), coeffsDict_(subDict(type + "Coeffs")), defaultCellSize_(defaultCellSize), refinementFactor_ ( lookupOrDefault<scalar>("refinementFactor", 1.0) ) {}
// Construct from components Foam::pseudoSolidTetMotionSolver:: pseudoSolidTetMotionSolver ( const polyMesh& mesh, Istream& msData ) : laplaceTetMotionSolver(mesh, msData) { const dictionary& pseudoSolidDic = subDict("pseudoSolid"); nu_ = readScalar(pseudoSolidDic.lookup("poissonsRatio")); nCorrectors_ = readInt(pseudoSolidDic.lookup("nCorrectors")); convergenceTolerance_ = readScalar(pseudoSolidDic.lookup("convergenceTolerance")); }
viscoelasticModel::viscoelasticModel ( const volScalarField& alpha, const volVectorField& U, const surfaceScalarField& phi ) : IOdictionary ( IOobject ( "viscoelasticProperties", U.time().constant(), U.db(), IOobject::MUST_READ, IOobject::NO_WRITE ) ), lawPtr_(viscoelasticLaw::New(word::null, alpha, U, phi, subDict("rheology"))) {}
Foam::constSolidThermo::constSolidThermo(const fvMesh& mesh) : basicSolidThermo(mesh), dict_(subDict(typeName + "Coeffs")), constK_(dimensionedScalar(dict_.lookup("K"))), K_ ( IOobject ( "K", mesh.time().timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, constK_ ), constRho_(dimensionedScalar(dict_.lookup("rho"))), constCp_(dimensionedScalar(dict_.lookup("Cp"))), constHf_(dimensionedScalar(dict_.lookup("Hf"))), constEmissivity_(dimensionedScalar(dict_.lookup("emissivity"))), constKappa_(dimensionedScalar(dict_.lookup("kappa"))), constSigmaS_(dimensionedScalar(dict_.lookup("sigmaS"))) { read(); K_ = constK_; rho_ = constRho_; emissivity_ = constEmissivity_; kappa_ = constKappa_; sigmaS_ = constSigmaS_; }
const Foam::dictionary& Foam::data::solverPerformanceDict() const { return subDict("solverPerformance"); }
bool Foam::constSolidThermo::read() { return read(subDict(typeName + "Coeffs")); }