|
[Sponsors] |
July 18, 2019, 16:00 |
Access to a turbulence model variable
|
#1 |
New Member
Mostafa
Join Date: Oct 2018
Posts: 3
Rep Power: 7 |
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. |
|
July 18, 2019, 22:33 |
|
#2 |
New Member
Mostafa
Join Date: Oct 2018
Posts: 3
Rep Power: 7 |
got it. Just needed to use volScalarField v2f = mesh.lookupObject<volScalarField>("v2");
|
|
|
|
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 |