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

LES DeardorffDiffStress

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2023, 02:07
Default LES DeardorffDiffStress
  #1
Senior Member
 
Tom-Robin Teschner
Join Date: Dec 2011
Location: Cranfield, UK
Posts: 204
Rep Power: 16
t.teschner is on a distinguished road
I am trying to get the DeardorffDiffStress model to work and can't seem to get the compressbile version to run. Running the model in incompressible mode works just fine, but when switching to compressible flow, I am getting the following error:


Code:
Incompatible dimensions for operation
    [R[1 -1 -3 0 0 0 0] ] - [R[0 2 -3 0 0 0 0] ]
Makes sort of sense, I am using
Code:
[0 2 -2 0 0 0 0]
as my dimensions when setting up the incompressible version for the Reynolds stresses, so multiplying by density should then remove this issue, so setting R to
Code:
[1 -1 -2 0 0 0 0]
then results in this error:


Code:
--> FOAM FATAL ERROR: (openfoam-2212)
Different dimensions for '(a = b)'
     dimensions : [0 2 -1 0 0 0 0] != [0.5 0.5 -1 0 0 0 0]


    From bool Foam::checkDims(const char*, const Foam::dimensionSet&, const Foam::dimensionSet&)
    in file dimensionSet/dimensionSet.C at line 56.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so
#1  Foam::error::simpleExit(int, bool) in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so
#2  Foam::error::exiting(int, bool) in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so
#3  Foam::dimensionSet::operator=(Foam::dimensionSet const&) const in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so
#4  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::operator=(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/rhoPimpleFoam
#5  Foam::LESModels::DeardorffDiffStress<Foam::EddyDiffusivity<Foam::ThermalDiffusivity<Foam::CompressibleTurbulenceModel<Foam::fluidThermo> > > >::correctNut() in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/lib/libcompressibleTurbulenceModels.so
#6  ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/rhoPimpleFoam
#7  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#8  ? in /usr/lib/openfoam/openfoam2212/platforms/linux64GccDPInt32Opt/bin/rhoPimpleFoam
So at least I know the issue is in correctNut() but that does not really help. The solver does not start (i.e. no momentum equation is solved, it crashes before then, so probably the issue is happening once the laplacian term is evaluating the viscosity), just wondering where these dimensions of
Code:
[0 2 -1 0 0 0 0] != [0.5 0.5 -1 0 0 0 0]
do come from. The first set seems to be something of a kinematic viscosity, but no idea where the second one is comming from (or what operation is producing kg^0.5 * m^0.5 s^-1 ... seems to be equivalent of sqrt(R)).


Any idea what to change to get this to work for compressible flows?
t.teschner is offline   Reply With Quote

Reply

Tags
deardorff, deardorffdiffstress, openfoam, reynolds stresses


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
Meshing for LES of Ahmed Body saintandsinnerz STAR-CCM+ 0 February 9, 2021 12:12
Grid difference between wall modeled LES and wall resolved LES hityangsir Main CFD Forum 9 April 17, 2015 11:59
OpenFOAM LES capability questions siw OpenFOAM Running, Solving & CFD 3 January 6, 2015 08:50
Turbulence dampening due to magnetic field in LES and RAS eelcovv OpenFOAM 0 June 8, 2010 11:35
Some Questions about LES. Bin Li Main CFD Forum 2 February 20, 2004 09:58


All times are GMT -4. The time now is 13:59.