|
[Sponsors] | |||||
want to create volscalarField Object using just runTime Objects. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Join Date: Oct 2013
Posts: 92
Rep Power: 14 ![]() |
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)
)
Code:
mu_
(
IOobject
(
phasePropertyName("thermo:mu"),
runTime.timeName(),
runTime,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
)
Code:
mu_
(
IOobject
(
phasePropertyName("thermo:mu"),
runTime.timeName(),
runTime,
IOobject::NO_READ,
IOobject::NO_WRITE
),
GeoMesh<runTime>,
dimensionSet(1, -1, -1, 0, 0)
)
|
|
|
|
|
|
|
|
|
#2 |
|
Member
Join Date: Oct 2013
Posts: 92
Rep Power: 14 ![]() |
Yes it is possible.
It is exactly as I have written. runTime and mesh are derived from the same base class. |
|
|
|
|
|
![]() |
| Tags |
| constructor, fvmesh, volscalarfield |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to create initiate a volScalarField p without reading from disk NO_READ does not seem to work | dbxmcf | OpenFOAM Running, Solving & CFD | 14 | March 25, 2022 07:08 |
| Meshing a Sphere | Ajay | FLUENT | 10 | September 3, 2016 15:18 |
| Where's the singularity/mesh flaw? | audrich | FLUENT | 3 | August 4, 2009 02:07 |
| [blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
| fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |