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

Access to a turbulence model variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2019, 16:00
Default Access to a turbulence model variable
  #1
New Member
 
Mostafa
Join Date: Oct 2018
Posts: 3
Rep Power: 7
m_aghaeei1993@yahoo.com is on a distinguished road
Hello,


I want to access to the values of v2 from v2f model into the pimplefoam solver.
In the solver I can do something like fvc::grad(turbulence->k()), but I cannot do the same operator for v2, i.e. I get error for fvc::grad(turbulence->v2())!!!!


Can somebody help me on this issue? tnx.
m_aghaeei1993@yahoo.com is offline   Reply With Quote

Old   July 18, 2019, 22:33
Default
  #2
New Member
 
Mostafa
Join Date: Oct 2018
Posts: 3
Rep Power: 7
m_aghaeei1993@yahoo.com is on a distinguished road
got it. Just needed to use volScalarField v2f = mesh.lookupObject<volScalarField>("v2");
m_aghaeei1993@yahoo.com 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
Use of k-epsilon and k-omega Models Jade M Main CFD Forum 40 January 27, 2023 07:18
Fetching a variable from a solver in a turbulence model. tintintk OpenFOAM Programming & Development 1 January 22, 2018 18:05
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Implement an les turbulence model pante OpenFOAM Programming & Development 19 December 5, 2014 16:16


All times are GMT -4. The time now is 17:04.