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

Direct implementation of Leonard stress without SGS modeling

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2018, 23:16
Default Direct implementation of Leonard stress without SGS modeling
  #1
Member
 
DongHo
Join Date: Jul 2013
Posts: 51
Rep Power: 12
eddykendo is on a distinguished road
P { margin-bottom: 0.21cm; } Dear. Foamers





At this time, I try to add directly a “Leonard Stress” term (actually, divergence of Leonard stress) in a momentum equation which is calculated using resolved velocity field without the SGS modeling.
I believe that there are two representative ways for this.
The one might be that Leonard stress can be computed in xx.H file such as createFields.H and then added to the momentum equation in UEqn.H. The other might be constructing files, for instance, LeonardStress.H and LeonardStress.C such as linearViscousStress.H, linearViscousStress.C.
Which one is an effective and easy way for that? Otherwise, any recommended method through your experience?
Because I am working on V4.0 and all the files concerning turbulence are based on a template (The second filtering in LES is also needed in order to calculated Leonard stress), I’d like to know the most appropriated way for implementing Leonard stress directly in the momentum equation.
I will appreciate it if you can suggest any opinion for me.


Thank you.
eddykendo is offline   Reply With Quote

Old   October 2, 2018, 04:40
Default
  #2
Member
 
Join Date: Mar 2015
Posts: 36
Rep Power: 11
K.C. is on a distinguished road
Dear eddykendo,


I would say you have to think about your overall aim of writing this code.


Are you sure, that you won't need it in the future and don't want to implement it in other solvers?
Then writing a single specified xx.H-File and inlcude it to your solver. Compile and have fun with it.


Do you want to implement it to other Foam-Solvers without recompiling every single solver you should use templates, write it as library and link it as turbulence model into existing solvers.


I hope this is usefull for you.


Greets,
K.C.
K.C. 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
LES of turbulent channel flows cedric_duprat OpenFOAM Running, Solving & CFD 220 November 18, 2019 04:19
Implicit vs Explicit SGS modelling syavash OpenFOAM Running, Solving & CFD 1 December 6, 2016 04:14
CFD Modeling of Direct COntact Membrane Desalination Ahmad idrees Main CFD Forum 0 February 19, 2014 16:36
What is really SGS dissipation term in LES? mrf6166 Main CFD Forum 0 January 5, 2014 06:57
Solvers with "Deterministic Stress" modeling??? Glenn Main CFD Forum 5 December 22, 2007 10:35


All times are GMT -4. The time now is 03:10.