|
[Sponsors] |
Fetching a variable from a solver in a turbulence model. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 15, 2018, 11:00 |
Fetching a variable from a solver in a turbulence model.
|
#1 |
New Member
Vishwajit Kumar
Join Date: Jun 2017
Posts: 6
Rep Power: 8 |
Hi,
I am developing a turbulence model in which i want to fetch some variable into the turbulence model.Can anyone explain how shall i do it. By the way I want to fetch two constants in the k-epsilon turbulence model. thanks. |
|
January 22, 2018, 18:05 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
To get access in other classes, the variable has to be registered. If you can achieve that, you can simply grab the variable such as:
Code:
const scalar& foo = this->db().lookupObject<scalar>("yourRegisterdVariable");
__________________
Keep foaming, Tobias Holzmann |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to apply a turbulence model to the rhoCentralFoam solver? | arussell92 | OpenFOAM Pre-Processing | 18 | July 25, 2022 04:26 |
Question about matching of solver and turbulence model | louistse | OpenFOAM Running, Solving & CFD | 1 | February 1, 2017 21:36 |
fluent divergence for no reason | sufjanst | FLUENT | 2 | March 23, 2016 16:08 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 03:32 |
Using (own) variable from turbulence model within solver | Arnoldinho | OpenFOAM Programming & Development | 3 | September 3, 2012 12:18 |