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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
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)
  #1
Member
 
Gang Wang
Join Date: Oct 2019
Location: China
Posts: 64
Rep Power: 8
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

Old   May 21, 2024, 05:37
Default
  #2
New Member
 
shiyu
Join Date: Mar 2018
Location: london
Posts: 9
Rep Power: 8
shiyu is on a distinguished road
Quote:
Originally Posted by Gang Wang View Post
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?
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.
shiyu is offline   Reply With Quote

Reply

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


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 11:49.