|
[Sponsors] |
September 23, 2010, 07:45 |
Dimensions !
|
#1 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
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. |
|
September 23, 2010, 17:10 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
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; |
|
September 24, 2010, 03:18 |
|
#3 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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. |
|
September 24, 2010, 04:11 |
Thanks
|
#4 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
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 |
|
September 24, 2010, 15:26 |
|
#5 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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 );
__________________
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. |
|
|
|
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 |