CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   turn off dimension checking (https://www.cfd-online.com/Forums/openfoam/66339-turn-off-dimension-checking.html)

isabel July 13, 2009 04:32

turn off dimension checking
 
Does anybody know how to turn off the dimension checking?

henrik July 13, 2009 09:24

Dear Isabel,

http://openfoamwiki.net/index.php/Ma...al_checking.3F


Henrik

isabel July 14, 2009 05:19

Thank you very much, Henrik,

The link gives this information:


4.1 How does one turn off the dimensional checking:

Dimensional checking is one of the cool features in OpenFOAM that helps to develop solvers that do something physicaly meaningfull. Therefore: don't do this if not absolutely necessary.
To switch it off at run-time set
dimensionSet 0;
in OpenFOAM-1.1/.OpenFOAM-1.1/controlDict.
A more controlled way is to use the dimensions()-method to set the dimension of the volXXXField in question to the desired dimension.





My problem is that I am using OpenFOAM 1.5, and in this version I don't have the file OpenFOAM-1.5/controlDict

henrik July 14, 2009 05:23

Dear Isabel,

You are right. It moved here

$FOAM_SRC/../etc/controlDict

Could you please update the How to?

Henrik

isabel July 14, 2009 05:35

Thank you very much, Henrik. Now it works.

It is in /home/isabel/OpenFOAM-1.5/etc/controlDict.C
I have changed line 332 to: dimensionSet 0;


All times are GMT -4. The time now is 16:42.