Hi,
When trying to run a multiphase simulation with the latest version of the CfdOF workbench, the values for gravity are written to file as "None". The "g" file contains:
dimensions [0 1 -2 0 0 0 0];
value (None None None);
and OpenFoam crashes (see below).
If I manually edit the file and replace "None None None" with "0.0 -9.81 0.0" the simulation runs fine (as previously - about a week ago).
Create time
Create mesh for time = 0
PIMPLE: no residual control data found. Calculations will employ 3 corrector loops
Reading field p_rgh
Reading field U
Reading/calculating face flux field phi
Reading transportProperties
Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes
Reading g
--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 18 the word 'None'
file: C:/Users/FiercePC/Documents/temp3/case/constant/g.value at line 18.
From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
in file ./primitives/Scalar/Scalar.T.C at line 93.
FOAM exiting
Thanks,
Michael
Value for Gravity Written to File as None
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Value for Gravity Written to File as None
It should be fixed now - thanks for reporting.
Please provide all the information requested in this post before reporting problems with CfdOF.
Re: Value for Gravity Written to File as None
The gravity "g" file now contains the following:
dimensions [0 1 -2 0 0 0 0];
value (0 mm/s^2 -9810 mm/s^2 0 mm/s^2);
and OpenFOAM crashes with the following message:
Reading g
--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 18 the word 'mm'
Thanks,
Michael
dimensions [0 1 -2 0 0 0 0];
value (0 mm/s^2 -9810 mm/s^2 0 mm/s^2);
and OpenFOAM crashes with the following message:
Reading g
--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 18 the word 'mm'
Thanks,
Michael
- oliveroxtoby
- Posts: 840
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Value for Gravity Written to File as None
Eeek, sorry. Should be rectified.MichaelD wrote: ↑Wed Sep 05, 2018 4:54 pm The gravity "g" file now contains the following:
dimensions [0 1 -2 0 0 0 0];
value (0 mm/s^2 -9810 mm/s^2 0 mm/s^2);
and OpenFOAM crashes with the following message:
Reading g
--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 18 the word 'mm'
Thanks,
Michael
Please provide all the information requested in this post before reporting problems with CfdOF.
Re: Value for Gravity Written to File as None
Yes, that's fixed it. Thank you.oliveroxtoby wrote: ↑Wed Sep 05, 2018 10:25 pmEeek, sorry. Should be rectified.MichaelD wrote: ↑Wed Sep 05, 2018 4:54 pm The gravity "g" file now contains the following:
dimensions [0 1 -2 0 0 0 0];
value (0 mm/s^2 -9810 mm/s^2 0 mm/s^2);
and OpenFOAM crashes with the following message:
Reading g
--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 18 the word 'mm'
Thanks,
Michael