CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Failed dimensional check with dynamic LES models (http://www.cfd-online.com/Forums/openfoam-bugs/62547-failed-dimensional-check-dynamic-les-models.html)

alberto June 7, 2007 08:47

Description: Running channelOo
 
Description: Running channelOodles (OF 1.4) on the tutorial case, enabling a LES model which uses the dynamic procedure gives dimensional check errors like the following:

- With dynSmagorinsky

--> FOAM FATAL ERROR : Different dimensions for =
dimensions : [0 2 -1 0 0 0 0] = [0 1 0 0 0 0 0]
#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&)
#1 Foam::error::abort()
#2 Foam::dimensionSet::operator=(Foam::dimensionSet const&) const
#3 Foam::GeometricField<double,>::operator=(Foam::tmp <foam::geometricfield<double,> > const&)
#4 Foam::LESmodels::dynSmagorinsky::correct(Foam::tmp <foam::geometricfield<foam::te nsor<double>, Foam::fvPatchField, Foam::volMesh> > const&)
#5 Foam::LESmodel::correct()
#6 main
#7 __libc_start_main
#8 __gxx_personality_v0 at /usr/src/packages/BUILD/glibc-2.3/csu/../sysdeps/x86_64/elf/start.S:116


From function dimensionSet::operator=(const dimensionSet& ds) const
in file dimensionSet/dimensionSet.C at line 156.


- With dynOneEqEddy

--> FOAM FATAL ERROR : incompatible dimensions for operation
[k[0 1 -2 0 0 0 0] ] - [((2*nuSgs)*magSqr(symm(grad(U))))[0 2 -3 0 0 0 0] ]#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&)
#1 Foam::error::abort()
#2 void Foam::checkMethod<double>(Foam::fvMatrix<double> const&, Foam::GeometricField<double,> const&, char const*)
#3 Foam::tmp<foam::fvmatrix<double> > Foam::operator-<double>(Foam::GeometricField<double,> const&, Foam::tmp<foam::fvmatrix<double> > const&)
#4 Foam::LESmodels::dynOneEqEddy::correct(Foam::tmp<f oam::geometricfield<foam::tens or<double>, Foam::fvPatchField, Foam::volMesh> > const&)
#5 Foam::LESmodel::correct()
#6 main
#7 __libc_start_main
#8 __gxx_personality_v0 at /usr/src/packages/BUILD/glibc-2.3/csu/../sysdeps/x86_64/elf/start.S:116


From function checkMethod(const fvMatrix<type>&, const GeometricField<type,>&)
in file /home/dm2/henry/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude/fvMatrix.C at line 1042.

FOAM aborting

Solver/Application: LESModels classes

Source file:

Testcase: channel395 with a LES model using the dynamic procedure.

Platform: All

Version: 1.4

Regards,
Alberto

alberto June 10, 2007 13:07

Any clue on this one? Or am I
 
Any clue on this one? Or am I missing something straightforward? :-?

Thanks in advance,
A.

henry June 11, 2007 14:31

On line 40 of OpenFOAM-1.4/
 
On line 40 of

OpenFOAM-1.4/src/OpenFOAM/fields/GeometricFields/GeometricSymmTensorField/GeometricSymmTensorField.C

replace 'transform' with 'sqr' (corrected version attached http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif GeometricSymmTensorField.C ) and recompile everything.

Henry

alberto June 11, 2007 15:00

As always, thanks a lot.
 
As always, thanks a lot.

nabildjef July 11, 2007 05:41

I am a new user of Linux; I ha
 
I am a new user of Linux; I have installed redhat9.0 for install Openfoam-1.3. In installation of Openfoam-1.3 I follow instruction in file readme. But when I start installation of GCC the message is: Permission non accordée.
In installation of redhat I create session her name is nabil, in this session I crest file Open FOAM
To install OpenFOAM, I flowing thus instruction.
The first instruction is: $HOME/OpenFOAM/OpenFOAM-4.1.2/.OpenFOAM-1.3/bashrc
The second instruction is: $WM_PROJECT_INST_DIR/$WM_ARCH/gcc-4.1.2
But here indicate that Permission non accordée.
The same for third instruction, $WM_PROJECT_DIR/.bashrc
After he installs normally openfoam, but in testing the installation indicates tow critical errors and one fatal error
I search

maka July 11, 2007 05:48

please post your message in:
 
please post your message in:
OpenFOAM Message Board: OpenFOAM: Installation
Have a nice day!
/Maka.

jaswi August 9, 2007 06:19

Hi OpenFOAM developers Prob
 
Hi OpenFOAM developers

Problem related to dynSmagorinsky model.

While use the dynSmagorinsky model, the solver throws up the dimension mismatch error.

Forum search shows that the following file has to be fixed:

GeometricSymmTensorField.C

I did as it suggests and then recompiled the whole thing by executing AllMake located in the
/OpenFOAM/OpenFOAM-1.4/src>

The bottom line is that it still throws the dimension mismatch error.

My guess is that the header file needs to be fixed as well !!!!! because it still contains the old defintion on line 52

Please comment

Regards
Jaswinder

henry August 9, 2007 06:44

Have you tried version 1.4.1?
 
Have you tried version 1.4.1?

jaswi August 9, 2007 06:48

No I am still using the versio
 
No I am still using the version 1.4.

lakeat September 5, 2007 22:57

Great, there's no problem in v
 
Great, there's no problem in version 1.4.1 http://www.cfd-online.com/OpenFOAM_D...part/happy.gif


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