Value for Gravity Written to File as None

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
MichaelD
Posts: 4
Joined: Tue Sep 04, 2018 5:40 pm

Value for Gravity Written to File as None

Post by MichaelD »

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
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Value for Gravity Written to File as None

Post by oliveroxtoby »

MichaelD wrote: Tue Sep 04, 2018 6:13 pm 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);
It should be fixed now - thanks for reporting.
Please provide all the information requested in this post before reporting problems with CfdOF.
MichaelD
Posts: 4
Joined: Tue Sep 04, 2018 5:40 pm

Re: Value for Gravity Written to File as None

Post by MichaelD »

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
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Value for Gravity Written to File as None

Post by oliveroxtoby »

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
Eeek, sorry. Should be rectified.
Please provide all the information requested in this post before reporting problems with CfdOF.
MichaelD
Posts: 4
Joined: Tue Sep 04, 2018 5:40 pm

Re: Value for Gravity Written to File as None

Post by MichaelD »

oliveroxtoby wrote: Wed Sep 05, 2018 10:25 pm
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
Eeek, sorry. Should be rectified.
Yes, that's fixed it. Thank you.
Post Reply