CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   lagrangian coal modeling (

xinyu March 22, 2013 15:19

lagrangian coal modeling
Hello All,

I am trying to implement a devolatilization model in OpenFOAM-1.7.1 which requires the knowledge of the temperature history of a parcel at any given time. Is there any way to achieve this with OpenFOAM's existing structure? Any suggestion is welcome=)

mbookin August 3, 2015 05:15

Hi xinyu, have you found any OpenFOAM's existing structures to implement temperature history in it?

mbookin August 18, 2015 10:31

temperature history usage in openFOAM
Does anybody know some hints or can advise in what direction to look for temperature history usage in OpenFOAM? Am I posting the question in the wrong topic? Can anyone suggest the right one?

mbookin August 23, 2015 10:52

Does anybody know any manual for DynamicField Class? I suppose that using .append method for sequential time steps, this class help to store temperature history in memory for the further use. Will this be appropriate in terms of memory and copying.

mbookin October 12, 2015 08:29

Hello everybody!

I'm using IOdictionary kjmaHistory to store temperature history List T_melt on disk.

List<DynamicList<scalar> > T_melt;// declaration the list of temperature history
T_melt.setSize(<size11>)// initial list of temperature history of size size11
IOdictionary kjmaHistory//declaration the dictionary
kjmaHistory.add("T_melt",T_melt,true);// add list to dictionary
T_melt[cellI].append(T_history[cellI]);//update list
runTime.write()// write to disk

But runTime.write() writes only initial list to disk in dictionary but not the updated one. What am I doing wrong? Do I need to manualy update dictionary by kjmaHistory.set("T_melt",T_melt); before runTime.write() (that is not convenient because it updates every time step but not every timewrite step) or is there another way to store updated list?

All times are GMT -4. The time now is 22:07.