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

Temperature dependent time distribution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2020, 02:59
Question Temperature dependent time distribution
  #1
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 348
Rep Power: 11
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
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.
Attached Images
File Type: png 1.png (54.6 KB, 8 views)
Kummi is offline   Reply With Quote

Reply


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


All times are GMT -4. The time now is 18:35.