|
[Sponsors] |
how to correct turbulent variables in a solver |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
chen wang
Join Date: Aug 2019
Location: Manchester, UK
Posts: 8
Rep Power: 7 ![]() |
Hello Everyone,
I want to know whether it is possible to correct the turbulence variables in a solver. For example, in simpleFoam, the turbulence equation is solved by the function 'turbulence->correct();' We can obtain the value of turbulent kinetic energy k by the function 'turbulence'->k();but ,as far as I know, the value of k cannot be corrected directly in the solver. In my algorithm, I need to correct the value of all transport variables based on their values from several previous iterations in the solver. I can correct the value of the velocity by the function 'TEqn.setValues(tCells, tVal);' suggested in the link:Fixed Temperature Cell in Solution But I don't know how to correct turbulent variables in the solver. Can you give me a clue? Thanks in advance. Chen |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 ![]() |
It is not possible from outside since all functions inside the turbulence model gives you constant access on the variables, e.g. k,epsilon and nut for the kEpsilon model (see https://www.openfoam.com/documentati...8H_source.html). If you want to manipulate the variables you have to do it directly in the source code of the model itself. This means you have to write your own model
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
chen wang
Join Date: Aug 2019
Location: Manchester, UK
Posts: 8
Rep Power: 7 ![]() |
Dear Michael,
Thank you very much for the reply. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to freeze additional variables fields for a number of solver iterations? | Antanas | CFX | 18 | April 26, 2023 11:29 |
PEMFC model with FLUENT | brahimchoice | FLUENT | 22 | April 19, 2020 15:44 |
Solver for an incompressible, turbulent flow with heat transfer | tH3f0rC3 | OpenFOAM Running, Solving & CFD | 9 | June 17, 2019 06:12 |
Problem with divergence | TDK | FLUENT | 13 | December 14, 2018 06:00 |
Variables Definition in CFX Solver 5.6 | R P | CFX | 2 | October 26, 2004 02:13 |