|
[Sponsors] |
November 12, 2020, 02:59 |
Temperature dependent time distribution
|
#1 |
Senior Member
|
Hello Foamers,
I have a query to ask. I attached an image here, where the temperature dependent time is plotted (at 5 different positions). Here the time is calculated for different temperatures (50, 100, 150, 200, ... ). With this in mind, I set the code below to extract the time results for various temperatures. I'm sure, it will be an untidy job at post-processing by rearranging the outcomes then and there. //************************************************** ***// forAll(T_, cellI) { if ((T_[cellI] < scalar (323)) && (T_[cellI] > scalar (322))) //50deg { Ctime50_[cellI] = time().value()/ scalar(3600); } if ((T_[cellI] < scalar (373)) && (T_[cellI] > scalar (372))) //100deg { Ctime100_[cellI] = time().value()/ scalar(3600); } if ((T_[cellI] < scalar (423)) && (T_[cellI] > scalar (422))) //150deg { Ctime150_[cellI] = time().value()/ scalar(3600); } } //************************************************** ***// Concerning post-processing, how to write the compact code (to handle in ease way) in such a way to obtain results in same template as given in the attachment ? Kindly someone share ideas. Thank you. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" | bigphil | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 686 | December 22, 2022 09:10 |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 05:49 |
Time and temperature dependent viscosity | sur4j | OpenFOAM | 16 | January 12, 2015 00:56 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 06:20 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 22:40 |