|
[Sponsors] |
How to define a new scalar based on Uprime2Mean? (based on an existed variable) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 26, 2019, 16:03 |
How to define a new scalar based on Uprime2Mean? (based on an existed variable)
|
#1 |
Member
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 8 |
I want to define a new scalar in the createFields.H in my solver, based on Uprime2Mean, the new scalar is just 1/2*tr(Uprime2Mean). But I don't know how to add that, could anyone help me to explain that?
|
|
May 21, 2024, 05:37 |
|
#2 |
New Member
shiyu
Join Date: Mar 2018
Location: london
Posts: 9
Rep Power: 8 |
Hi Gang, I am facing a similar problem that gets k_res = 0.5*tr(UPrime2Mean) in my solver during the running time. Have you solved this issue already? Thanks.
|
|
Tags |
createfields.h, openfoam-v1806, post processing, scalar field, uprime2mean |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Temperature calculation from total enthalpy in OpenFOAM (XiFOAM) | sharifi | OpenFOAM Running, Solving & CFD | 1 | October 8, 2020 10:16 |
How to define a boundary condition as a variable with other flow variable | upuli | OpenFOAM Programming & Development | 0 | June 6, 2017 03:31 |
Division by zero exception - loop over scalarField | Pat84 | OpenFOAM Programming & Development | 6 | February 18, 2017 06:57 |
using a Fortran library of thermodynamics inside sutherland transport model | Mehdi3031 | OpenFOAM Programming & Development | 0 | April 7, 2016 10:34 |
access to member function variable | Rahand | OpenFOAM Programming & Development | 3 | March 29, 2016 16:46 |