|
[Sponsors] |
Access to ck or ce of the Smagorinsky in a new solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 26, 2013, 14:12 |
Access to ck or ce of the Smagorinsky in a new solver
|
#1 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
Dear Foamer,
I am trying to set different values of ck or ce of Smagorinsky model in different regions of the domain. I am not sure whether it is possible to access to ck in the main code of a new solver. Does anyone have an idea? My best regards, Jian |
|
October 26, 2013, 14:21 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Jian,
Quick question: do you mean you want to access the values for the turbulence model in general or the one on a specific patch? I ask this because I honestly haven't checked which Smagorinsky model you're referring to... Best regards, Bruno
__________________
|
|
October 26, 2013, 19:17 |
|
#3 |
Senior Member
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14 |
Hi Bruno,
I mean the incompressible::turbulence::LES models::Smagorinsky. Just like using setFields for 'alpha'. I want to select a region (BoxtoCell) and specify a set value of ck/ce. The remaining region are set to another set of value. I am not sure whether it is possible. My best regards, Jian |
|
October 26, 2013, 19:40 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Jian,
From what I can see in the source code:
You will have to create a variant of those two classes for them to use "ce" and/or "ck" as scalar fields. Only then will you be able to set values specific to certain locations of the mesh. Have a look into the code "src/turbulenceModels/compressible/LES/SpalartAllmaras": https://github.com/OpenFOAM/OpenFOAM...palartAllmaras - it uses scalar fields for these variables: Quote:
Bruno
__________________
|
||
Tags |
change ce, change ck, smagorinsky model |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strange residuals of the Density Based Solver | Pat84 | FLUENT | 0 | October 22, 2012 16:59 |
Quarter Burner mesh with periosic condition | SamCanuck | FLUENT | 2 | August 31, 2011 12:34 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
why the solver reject it? Anyone with experience? | bearcat | CFX | 6 | April 28, 2008 15:08 |
How to access solver fields from fvPatchField%2360Type derived class that defines BC | kar | OpenFOAM Running, Solving & CFD | 0 | February 29, 2008 13:41 |