|
[Sponsors] |
April 22, 2020, 11:06 |
Solver looking for Foam::NO_READ fields ...
|
#1 |
Senior Member
Gerry Kan
Join Date: May 2016
Posts: 350
Rep Power: 10 |
Howdy Foamers:
I have something which I can't quite understand. Perhaps you could spot what the problem could be. In my solver implemention, I have two variables set to IOobject::NO_READ in source file createFields.H: Code:
volScalarField rho ( IOobject ( "rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), thermo.rho() ); volVectorField rhoG ( IOobject ( "rhoG", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh ); In the end, I just wanted to have the field "rhoG" as temporary storage, as it will be used in a number of equations and I only wanted to calculate it once per outer iteration. I could define calculated boundary conditions in the 0 folder for rhoG, but ultimately I would like to hide that from the end user. How would I go about doing that? Thanks in advance, Gerry. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Help with element size | sandri_92 | ANSYS Meshing & Geometry | 14 | November 14, 2018 07:54 |
Incompatible fields for operation divphi Ub | vvqf | OpenFOAM Running, Solving & CFD | 4 | April 4, 2018 03:28 |
Quarter Burner mesh with periosic condition | SamCanuck | FLUENT | 2 | August 31, 2011 11:34 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 14:08 |
How to access solver fields from fvPatchField%2360Type derived class that defines BC | kar | OpenFOAM Running, Solving & CFD | 0 | February 29, 2008 12:41 |