Go to the documentation of this file. 1 Info<<
"Reading mechanical properties\n" <<
endl;
3 IOdictionary mechanicalProperties
7 "mechanicalProperties",
10 IOobject::MUST_READ_IF_MODIFIED,
15 const dictionary& rhoDict(mechanicalProperties.subDict(
"rho"));
16 word rhoType(rhoDict.get<word>(
"type"));
29 if (rhoType ==
"uniform")
31 scalar rhoValue(rhoDict.get<scalar>(
"value"));
48 else if (rhoType ==
"field")
50 rhoIO.readOpt(IOobject::MUST_READ);
64 <<
"Valid type entries are uniform or field for rho"
70 const dictionary&
EDict(mechanicalProperties.subDict(
"E"));
73 autoPtr<volScalarField>
EPtr;
86 scalar rhoEValue(
EDict.get<scalar>(
"value"));
103 else if (
EType ==
"field")
105 EHeader.readOpt(IOobject::MUST_READ);
119 <<
"Valid type entries are uniform or field for E"
136 const dictionary&
nuDict(mechanicalProperties.subDict(
"nu"));
141 scalar nuValue(
nuDict.get<scalar>(
"value"));
157 else if (
nuType ==
"field")
159 nuIO.readOpt(IOobject::MUST_READ);
172 <<
"Valid type entries are uniform or field for nu"
178 Info<<
"Normalising E : E/rho\n" <<
endl;
181 Info<<
"Calculating Lame's coefficients\n" <<
endl;
187 if (mechanicalProperties.get<
bool>(
"planeStress"))
192 threeK = E/(1.0 -
nu);
const dimensionedScalar mu
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Ostream & endl(Ostream &os)
IOobject rhoIO("rho", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
autoPtr< volScalarField > nuPtr
const dictionary & EDict(mechanicalProperties.subDict("E"))
Info<< "Reading mechanical properties\n"<< endl;IOdictionary mechanicalProperties(IOobject("mechanicalProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE));const dictionary &rhoDict(mechanicalProperties.subDict("rho"));word rhoType(rhoDict.get< word >"type"));autoPtr< volScalarField > rhoPtr
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
IOobject EHeader("E", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
const dictionary & nuDict(mechanicalProperties.subDict("nu"))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
errorManip< error > abort(error &err)
#define FatalErrorInFunction
dimensionedSymmTensor sqr(const dimensionedVector &dv)
word EType(EDict.get< word >("type"))
word nuType(nuDict.get< word >("type"))
const dimensionSet dimVolume(pow3(dimLength))
autoPtr< volScalarField > EPtr
IOobject nuIO("nu", runTime.timeName(0), mesh, IOobject::NO_READ, IOobject::NO_WRITE)
const dimensionSet dimless