CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   LTSInterfoam-Setting Fields (https://www.cfd-online.com/Forums/openfoam-solving/105398-ltsinterfoam-setting-fields.html)

Dr.Faustus July 30, 2012 05:04

LTSInterfoam-Setting Fields
 
1 Attachment(s)
Hi to everybody... i'm founding some difficulties to find documentation about setFieldsDict for LTSInterFoam... in particular i've to set the vof value at a certain height above the bottom...
I've tried to write setFiledDict as the file posted... with 2 zones corresponding to values 1 and 0 of alpha1... but when launching LTSInterFoam te following errors comes out:

Code:

--> FOAM FATAL IO ERROR:
size 15000 is not equal to the given value of 706530

file: /media/04095B560627AED8/tutorial_foam/wigley2/0/alpha1 from line 18 to line 15349.

    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/Field.C at line 236.

any idea?
Thanks

Bernhard July 30, 2012 05:20

Probably the 0/alpha1 file is already set for a different mesh. Try this with an unset alpha1 file (that is, no lists). If you then run setFields -time 0, it will probably work.

Dr.Faustus July 30, 2012 06:05

1 Attachment(s)
Ok,i've found the mistake
i had runned the setFields before coping the mesh...
Thanks

P:s.
i've edited the setFieldsDict as posted, seems to work better..


All times are GMT -4. The time now is 13:36.