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

how to correct turbulent variables in a solver

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mAlletto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2019, 06:34
Default how to correct turbulent variables in a solver
  #1
New Member
 
chen wang
Join Date: Aug 2019
Location: Manchester, UK
Posts: 8
Rep Power: 7
chen wang is on a distinguished road
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
chen wang is offline   Reply With Quote

Old   August 13, 2019, 06:33
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
cryabroad likes this.
mAlletto is offline   Reply With Quote

Old   August 13, 2019, 08:40
Default
  #3
New Member
 
chen wang
Join Date: Aug 2019
Location: Manchester, UK
Posts: 8
Rep Power: 7
chen wang is on a distinguished road
Dear Michael,

Thank you very much for the reply.
chen wang 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
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


All times are GMT -4. The time now is 21:36.