FAQ/Solution procedure

From OpenFOAMWiki
< FAQ
Revision as of 15:44, 25 December 2013 by Wyldckat (Talk | contribs)


1 FAQ Section 4: Solution procedure

Manipulating the solution procedure by non-programming means

1.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.

(source: [1])

1.2 Is there a way to switch between single and double precision?

For Version 1.2 and older: Only by editing src/OpenFOAM/primitives/scalar/scalar.H and recompiling OpenFOAM. But why would you want to do that (except for memory issues)? (source: [2])

For Version 1.3: Recompile OpenFOAM with single-precision enabled (for details see Howto_compile_OpenFOAM)

Facts about "FAQ/Solution procedure"RDF feed
FaqdescriptionManipulating the solution procedure by non-programming means +
FaqnameSolution procedure +
Faqnumber4 +