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

LES simulation with Smagorinsky2 model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2011, 05:46
Default LES simulation with Smagorinsky2 model
  #1
New Member
 
Tom Schmitz
Join Date: Mar 2011
Posts: 19
Rep Power: 15
Zuixy is on a distinguished road
Hey,

I'm working on a simulation of air flow through a grid. I did one simulation with PimpleFoam and the kOmegaSSTSAS model and i worked.

Now i would like to use the Smagorinsky2 model but I couldn't find a solver. I thought pimple or piso should work but if i use them i always get the error, that it is an Unkown LESmodel.
I searched through the internet and found that it would work with oodles which is piso in the new versions of Openfoam.

Any Idea?

I'm using OpenFoam 2.0.1.

Regards, Tom
Zuixy is offline   Reply With Quote

Old   October 18, 2011, 06:15
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Can you make sure that the Smagorinsky2 model is actually compiled? In the src folder, I don't find the Smagorinsky2.dep file?
Bernhard is offline   Reply With Quote

Old   October 18, 2011, 08:09
Default
  #3
New Member
 
Tom Schmitz
Join Date: Mar 2011
Posts: 19
Rep Power: 15
Zuixy is on a distinguished road
Thanks for the hint.

But I have some problems compiling the model.
I change the src/turbulenceModels/incompressible/LES/Make/files file and run Allwmake in src/turbulenceModels/incompressible.

I get the error:
Smagorinsky2/Smagorinsky2.C:57:1: error: class ‘Foam::incompressible::LESModels::Smagorinsky2’ does not have any field named ‘cD2’

What do i have to change in the file?
Another thing that i noticed is that there is no Smagorisky2.o file in src/turbulenceModels/incompressible/LES/Make/linux64GccDPOpt
Zuixy is offline   Reply With Quote

Old   October 20, 2011, 07:17
Default
  #4
New Member
 
Tom Schmitz
Join Date: Mar 2011
Posts: 19
Rep Power: 15
Zuixy is on a distinguished road
Hey,

here is my porgess. (not sure if it is really a progress)

In the Smagorinsky2.c file i change the line 108 from:

cD2.readIfPresent(coeffDict());

to:

cD2_.readIfPresent(coeffDict()); // ading a _

After that i was able to compile the model. Then the next problem appears. There was a problem of wrong dimensions. So a made a dimensions analysis and change the line 94 from:

I*nuEff() + cD2_*delta()*symm(gradU)

to:

I*nuEff() + cD2_*delta()*delta()*symm(gradU) //ading a *delta()

I'm not sure if this change is correct because i was not able to find any formulas about the Smagorinks2 model.

Now I'm able to start the simulation but i'm getting a segmentation fault before the first value is calculated.

Zuixy 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
Undefined symbol error after compiling a new LES model jabhiji OpenFOAM Programming & Development 16 December 18, 2021 15:18
about Subgrid-scale model impecca OpenFOAM Running, Solving & CFD 4 December 20, 2013 11:36
OpenFOAM: LES turbulence model names Ollie OpenFOAM 5 January 7, 2013 11:24
LES model (oneEqEddy), air entrainment predictions N. A. OpenFOAM 1 November 7, 2010 14:17
LES simulation of bluff body at Re(d)=1200 arash_nl FLUENT 0 June 1, 2009 14:16


All times are GMT -4. The time now is 20:23.