Dimensions !
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. |
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; |
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 ;-) |
Thanks
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 |
Define a volScalarField called nuEff after reading nu from transportProperties
Code:
volScalarField nuEff |
All times are GMT -4. The time now is 02:07. |