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/)
-   -   How does one turn off the dimensional checking (https://www.cfd-online.com/Forums/openfoam-solving/60598-how-does-one-turn-off-dimensional-checking.html)

kupiainen May 16, 2005 05:00

While trying to implement a lo
 
While trying to implement a low-storage solver I want to reuse variables. How does one turn off the dimensional checking in OpenFoam?

henry May 16, 2005 05:06

You can switch off the checkin
 
You can switch off the checking at run-time by setting

dimensionSet 0;

in OpenFOAM-1.1/.OpenFOAM-1.1/controlDict.

mattijs May 16, 2005 05:10

Or maybe you can reset the dim
 
Or maybe you can reset the dimensions() on the volXXXFields to the correct type. (see GeometricField.H, dimensions() gives non-const access)

sven August 5, 2009 12:47

I also tried to switch off the dimension checking, but the folder .OpenFOAM-1.1 does not exist at the location OpenFOAM-1.1. Am I searching at the wrong position? (ps: I recognized that it is a hidden folder)

Thanks

olesen August 6, 2009 02:52

Quote:

Originally Posted by sven (Post 225370)
I also tried to switch off the dimension checking, but the folder .OpenFOAM-1.1 does not exist at the location OpenFOAM-1.1. Am I searching at the wrong position? (ps: I recognized that it is a hidden folder)

If you are indeed still using OpenFOAM-1.1 (note the original posting was from 2005), the location should be the same.

If you are using OpenFOAM-1.5 (or later), you should use the ~/.OpenFOAM/ or ~/.OpenFOAM/1.5/ directories. The later is generally better for controlDict, since it might change in incompatible ways between versions.

Note that with OpenFOAM-1.6, you can also use the command
Code:

$ foamEtcFile -list
to list the various directory locations that will be examined for the "~OpenFOAM/" string expansion (the same logic that is used to locate the controlDict).

And the command
Code:

$ foamEtcFile controlDict
to determine which file OpenFOAM will find for your controlDict.

See "foamEtcFile -help" for more information.

zcarral January 12, 2015 05:30

Dear everybody,

If OpenFOAM is installed at opt directory, is it not possible to edit the file controlDict due to permission problems. Is there other way to change permissions?

hajott January 12, 2015 07:06

You can copy the controlDict from /opt/openfoam230/etc/ to $HOME/.OpenFOAM/2.3.0/, which will override the settings in /opt.

6863523 December 6, 2016 05:25

to use the dimensionless N-S equations in OpenFOAM
 
1 Attachment(s)
Quote:

Originally Posted by hajott (Post 527113)
You can copy the controlDict from /opt/openfoam230/etc/ to $HOME/.OpenFOAM/2.3.0/, which will override the settings in /opt.

Dear hajott,
I have copied the controlDict according to your suggestion.
But there is still a problem as in the attchment.
Could you help to check?
Thank you in advance.
Best Regards,
Bill


All times are GMT -4. The time now is 21:12.