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

How to include additional variables in a LESdelta?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2012, 11:31
Default How to include additional variables in a LESdelta?
  #1
New Member
 
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 13
Jane L is on a distinguished road
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!!
Jane L is offline   Reply With Quote

Old   July 23, 2012, 12:06
Default
  #2
Member
 
Timo K.
Join Date: Feb 2010
Location: University of Stuttgart
Posts: 66
Rep Power: 16
timo_IHS is on a distinguished road
Have a look in this turbulence model (VLES)
OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/RAS/kOmegaSSTF

Best
timo_IHS is offline   Reply With Quote

Old   July 24, 2012, 04:36
Default
  #3
New Member
 
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 13
Jane L is on a distinguished road
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
So my quite basic question is how do I have to declare the variables in order to use them in mymaxDeltaxyz?

Best regards
Jane L is offline   Reply With Quote

Old   July 24, 2012, 07:35
Default
  #4
Member
 
Timo K.
Join Date: Feb 2010
Location: University of Stuttgart
Posts: 66
Rep Power: 16
timo_IHS is on a distinguished road
Perhaps a IOobject helps!?
timo_IHS is offline   Reply With Quote

Old   July 24, 2012, 10:06
Default
  #5
New Member
 
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 13
Jane L is on a distinguished road
ok, I think it works for now!

Thank you very much
Jane L is offline   Reply With Quote

Old   July 24, 2012, 10:21
Default
  #6
Member
 
Timo K.
Join Date: Feb 2010
Location: University of Stuttgart
Posts: 66
Rep Power: 16
timo_IHS is on a distinguished road
Could you show some part of your code, perhaps it is interesting for other users too.
timo_IHS is offline   Reply With Quote

Old   July 25, 2012, 06:54
Default
  #7
New Member
 
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 13
Jane L is on a distinguished road
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
Jane L is offline   Reply With Quote

Old   November 1, 2012, 06:50
Default
  #8
New Member
 
Jane L
Join Date: May 2012
Posts: 23
Rep Power: 13
Jane L is on a distinguished road
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
Jane L 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
OpenFoam install script Error during paraFoam installation SePe OpenFOAM Installation 10 June 19, 2010 15:15
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 17:25.