CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   SetFields runs with no errors but doesnbt change fields (http://www.cfd-online.com/Forums/openfoam-pre-processing/62193-setfields-runs-no-errors-but-doesnbt-change-fields.html)

adamsview May 26, 2006 08:13

Hi everybody....i'm studying a
 
Hi everybody....i'm studying a complex domain with rasInterFoam. I used a box in paraview to find the box vertex for SetFields. I launch SetFields to set gamma 1 in a part of the domain. Everything is the same as in dambreak....no errors are given. At the end of SetFields execution, OpenFOAM asks me to reread mesh&fields... i do that (i tried to DON'T DO too!!). Everything seems to be ok, but gamma fields hasn't changed! It is still uniform. It looks like it doesn't find any cell into the box .... Can anybody help me?!
Thank you

adamsview May 26, 2006 08:34

Ok....i've solved that......i'
 
Ok....i've solved that......i've found on the forum that box must be specified as (x_min y_min z_min) (x_max y_max z_max). It didn't work becouse i inverted y_min and Y_max....

Linse September 24, 2010 04:30

Just for the case somebody does have the same symptom but that reason does not apply:
I found that setFields really needs the values in meters within the setFieldsDict.
In my case I had scaled the geometry via convertToMeters within blockMeshDict, setFields did run nicely - but the result was no change in the field.
You can scale within blockMeshDict - setFields though does not apply that scaling...

Bonus-question to the longtime-users: Is it possible to simply add the convertToMeters-part within setFieldsDict?

musahossein December 12, 2014 22:03

Quote:

Originally Posted by Linse (Post 276459)
Just for the case somebody does have the same symptom but that reason does not apply:
I found that setFields really needs the values in meters within the setFieldsDict.
In my case I had scaled the geometry via convertToMeters within blockMeshDict, setFields did run nicely - but the result was no change in the field.
You can scale within blockMeshDict - setFields though does not apply that scaling...

Bonus-question to the longtime-users: Is it possible to simply add the convertToMeters-part within setFieldsDict?

I have been running interDyMFoam solver for a while now and from what I know, there is no units conversion in setFields for this particular solver. setFields does not ask for the units when the boundaries of the analysis space is set. As far as I know it is set in meters. Please let me know.

Thanks


All times are GMT -4. The time now is 08:07.