|
[Sponsors] |
May 9, 2013, 06:25 |
|
#4 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 15 |
Yes, you are right.
To modify temperature from the top-level solver you need to access the variable "T_" in basicThermo. You can write a function (say Tmodifiable) that returns nonconstant access to T_. Code:
volScalarField& T=thermo.Tmodifiable(); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with zeroGradient wall BC for temperature - Total temperature loss | cboss | OpenFOAM | 12 | October 1, 2018 06:36 |
Implementation of maxwell slip velocity and Temperature jump with openfoam | yassepid | OpenFOAM | 2 | June 28, 2016 07:05 |
coldEngineFoam (OpenFoam 2.1.x), constant Temperature during adiabatic compression | novakm | OpenFOAM Verification & Validation | 1 | February 25, 2013 12:25 |
Inlet won't apply UDF and has temperature at 0K! | tccruise | Fluent UDF and Scheme Programming | 2 | September 14, 2012 06:08 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 06:25 |