fedvasu |
July 7, 2015 17:44 |
want to create volscalarField Object using just runTime Objects.
Here is how we typically define, volScalarField Objects
Code:
mu_
(
IOobject
(
phasePropertyName("thermo:mu"),
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
)
but we don't require mesh object to create IOobject, we may use runTime object of type Time,
Code:
mu_
(
IOobject
(
phasePropertyName("thermo:mu"),
runTime.timeName(),
runTime,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
)
I want to know if we can forgo mesh object, in the next argument or maybe we can create an object of subtype of fvMesh class? something like this,
Code:
mu_
(
IOobject
(
phasePropertyName("thermo:mu"),
runTime.timeName(),
runTime,
IOobject::NO_READ,
IOobject::NO_WRITE
),
GeoMesh<runTime>,
dimensionSet(1, -1, -1, 0, 0)
)
is it possible? have you trued it before, my constraint is I don't have an object of type fvMesh readily available.
|