writing values to IOdictionary subDict not generating expected output?
Hello All,
Below I have the code that tries to output values to a dict file ( nevermind that it doesn't make sense in terms of actual scientific use as it's only for a reading and writing example). Basically I have a mesh that is read and some math is used to find scalars and I want to write this to a dictionary file in /constant. Right now it just writes out the dimensions but not the result of the calculation for volScalarField DVals = cellCentroid & cellCentroid; Code:
#include "fvCFD.H" Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
I got this to work!
Code:
#include "fvCFD.H" for this type.. internalField nonuniform List<scalar> |
1 Attachment(s)
Now I get nulls in my output in the internalField?
Basically I'm reaeding the mesh into a volVectorField and trying to write to disk (file /0/result) but for some reason it's turning into garbage? Something like this Code:
internalField nonuniform List<vector> Code:
#include "fvCFD.H" EDIT:NEVERMIND I read the result IOobject into Info and it reproduced the list. I still don't see why nulls are created? Must be a type of openfoam "codex"? Code:
#include "fvCFD.H" |
All times are GMT -4. The time now is 08:41. |