CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Dimensions !

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2010, 07:45
Post Dimensions !
  #1
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
Hi everybody,

Please Please, i need to stop all these "dimensions stuff", they are turning me crazy!!!
because my equation is so complicated, and i need to solve it without any dimensions even for the Ueqn and P and correction i mean for all
I mean even for icoFoam forexample, so How to switch OFF all dimensions
in my application solver, and not in the all root openfoam directories.

Thanks a lot

T.D.
T.D. is offline   Reply With Quote

Old   September 23, 2010, 17:10
Default
  #2
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
Do you have access to OpenFOAM-1.x.x/etc/controlDict? If so, find the dimensionSet entry in DebugSwitches and set it to 0.

Better yet, are you writing your own solver? If so, start with:
Code:
dimensionSet::debug = 0;
Hopefully that works.
marupio is offline   Reply With Quote

Old   September 24, 2010, 03:18
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
In my experience, turning off the dimensional check is not smart. It often saves you from making obvious mistakes and finds almost all typos in complicated equations.

You are coding something complex: it is exactly when you need automatic checks like these :-)

Of course, just my two cents ;-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   September 24, 2010, 04:11
Post Thanks
  #4
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
Hi alberto,
finally i let it on, and you are right i descovered many mistakes and solved them, thanks,

i have a question for you please

In the Ico Foam solver, how can i change "nu" to be a function of a scalarField knowing that nu is a dimensioned scalar for example


if i need to solve
fvm::ddt(c)+fvc::div(phi,c) == etc.... (c is a volScalarField defined without any dimension)

but before it i have in the UEqn in IcoFoam "nu" and i need that my nu=(1-c/0.68)

help please


thanks
T.D. is offline   Reply With Quote

Old   September 24, 2010, 15:26
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Define a volScalarField called nuEff after reading nu from transportProperties

Code:
volScalarField nuEff
    (
        IOobject
        (
            "nuEff",
            runTime.timeName(),
            mesh,
            IOobject::NO_READ,
            IOobject::NO_WRITE
        ),
        mesh,
        nu
    );
Then use this field instead of nu in the UEqn, and update nuEff according to your law.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] stl and snappyHexMesh dimensions mismatch romant OpenFOAM Meshing & Mesh Conversion 11 May 4, 2015 10:44
Incompatible dimensions.... Amiga500 OpenFOAM Running, Solving & CFD 13 June 1, 2012 08:20
Different dimensions for FATAL ERROR retech OpenFOAM Running, Solving & CFD 2 August 14, 2007 11:17
Dimensions of laplacian in PISO loop kumar2 OpenFOAM Running, Solving & CFD 2 July 3, 2006 15:34
Fluent: changing dimensions of a geometry genetaed Madhukar Rapaka FLUENT 3 October 12, 2005 12:40


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