CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM

How to define a new scalar based on Uprime2Mean? (based on an existed variable)

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2019, 16:03
Default How to define a new scalar based on Uprime2Mean? (based on an existed variable)
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 62
Rep Power: 7
Gang Wang is on a distinguished road
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?
Gang Wang is offline   Reply With Quote


createfields.h, openfoam-v1806, post processing, scalar field, uprime2mean

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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

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