writeEntry while using codeStream(OFv1906)
Hi all,
I followed the tutorial, https://wiki.openfoam.com/Programming2 http://www.wolfdynamics.com/wiki/pro...streamINIT.pdf and tried to learn using codeStream in Dictionary to set B.C. And I found that OFv1906 has a different definition of writeEntry. with the original line, writeEntry(os, "", alpha); this error pop up error: ‘Foam::scalarField {aka class Foam::Field<double>}’ has no member named ‘writeEntry ’ then I follow the instruction in src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.H and change the line to alpha.writeEntry("",os); this error pop up /home/sam/OpenFOAM/sam-v1906/run/codeStream_INIT/fillBox_BCIC/0/alpha.water.#codeStream:59:15: error: ‘Foam::scalarField {aka class Foam::Field<double>}’ has no member named ‘writeEntry ’ What's happening.? |
Anyone? please help
|
Quote:
The second one with Code:
field.writeEntry(keyword, os); must work. Need to check if there is something else wrong. https://develop.openfoam.com/Develop...d/Field.H#L361 |
codestream for Taylor-Green Vortex initial conditions
I just wanted to add a small implementation based on the above discussion. It is not the same field but the procedure remains sort of similar.
So, scope of the folowing code stream is the generation of Taylor-Green Vortex initial conditions in order to simulate some canonical DNS case. The files that codestream needs to be used is the velocity file U under the 0 directory as well as the pressure file p under the same directory. Here are attached the code snippets of those files First is given the U file Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Best K |
All times are GMT -4. The time now is 07:17. |