|
[Sponsors] |
How to include additional variables in a LESdelta? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2012, 12:31 |
How to include additional variables in a LESdelta?
|
#1 |
New Member
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 14 |
Hello!
Currently I'am programming my own DES turbulence model. Therefore I need to make a new version of maxDeltaxyz which includes u*dt and sqrt(k)*dt in addition to dx, dy, dz, where u is the magnitude of the velocity, dt is the timestep and k is the turbulent kinetic energy used in that turbulence model. After trying one day, could anybody help me how to include which files so that I can use u, dt and k in maxDeltaxyz? Thanks in advance for any help!! |
|
July 23, 2012, 13:06 |
|
#2 |
Member
Timo K.
Join Date: Feb 2010
Location: University of Stuttgart
Posts: 66
Rep Power: 16 |
Have a look in this turbulence model (VLES)
OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/RAS/kOmegaSSTF Best |
|
July 24, 2012, 05:36 |
|
#3 |
New Member
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 14 |
Thanks for your reply!
I downloaded OpenFOAM-1.6-ext and didn't find kOmegaSSTF in that src folder. However the main changes to kOmegaSST are stated in the presentation "How to implement your own turbulence model" by Håkan Nilsson. My problem is that those variables which can be used in a turbulence model aren't known by mymaxDeltaxyz (/home/user/OpenFOAM/user-2.1.1/src/turbulenceModels/LES/LESdeltas/maxDeltaxyz). Hence, when I write them into my code and try to compile, I recieve following output: Code:
error: ‘U_’ was not declared in this scope error: ‘runTime_’ was not declared in this scope error: ‘k_’ was not declared in this scope Best regards |
|
July 24, 2012, 08:35 |
|
#4 |
Member
Timo K.
Join Date: Feb 2010
Location: University of Stuttgart
Posts: 66
Rep Power: 16 |
Perhaps a IOobject helps!?
|
|
July 24, 2012, 11:06 |
|
#5 |
New Member
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 14 |
ok, I think it works for now!
Thank you very much |
|
July 24, 2012, 11:21 |
|
#6 |
Member
Timo K.
Join Date: Feb 2010
Location: University of Stuttgart
Posts: 66
Rep Power: 16 |
Could you show some part of your code, perhaps it is interesting for other users too.
|
|
July 25, 2012, 07:54 |
|
#7 |
New Member
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 14 |
yes, I will do that but I think I will wait until I have some validation results. Either I will post a running turbulence model or I will run into some problems and post a buggy code in order to get some help
so long |
|
November 1, 2012, 07:50 |
|
#8 |
New Member
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 14 |
Hi!
I finished the programming of the turbulence models. You find the necessary files in this thread: http://www.cfd-online.com/Forums/ope...s-k-omega.html best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 16:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 11:46 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |