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

Analogous funtionality to User Defined Memory locations in OpenFOAM?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2019, 10:41
Default Analogous funtionality to User Defined Memory locations in OpenFOAM?
  #1
New Member
 
harryk
Join Date: Nov 2019
Posts: 1
Rep Power: 0
harryk is on a distinguished road
Dear cfd-online board,
I am quite new to the OpenFOAM-world and I have already used ANSYS Fluent. I want to model a heat conduction problem in a solid body, where I prescribe a temperature-dependent source term using fvOptions. The solver "laplacianFoam" has so far been sufficient. In the next step, I want to limit the total amount of energy that can be generated by the source term in each individual cell (modelling a pyrolysis process where the amount of available solid fuel is used up after some time). For that purpose, I would like to have a variable (e.g. Qtot), that is initialized with = 0 at every cell at t=0 and where the current source term can be added at the end of every timestep. In ANSYS, I would solve this using 2 UDMs (user defined memory): one to store the latest source term for each cell (stored whenever the source term is calculated, i.e. for each iteration) and one for Qtot, with an additional routine that is called at the end of each timestep to add the source term to Qtot.
How can I do something similar in OpenFOAM? (store latest source term using the routine in fvOptions, add source term to Qtot at the end of the timestep)
Afterwards, I would like to be able to plot Qtot using paraFoam.
Thank you for your help in advance - I hope I chose the right forum for this question
Best regards,
harryk
harryk 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
[Docker] Running OpenFoam 4.1 from script without user intervention fnellmeldin OpenFOAM Running, Solving & CFD 9 June 7, 2017 18:04
German OpenFoam User meeting 21/22.03.2017 - GOFUN 2017 thg OpenFOAM Announcements from Other Sources 1 February 27, 2017 09:31
NOFUN 2016 agenda is out - 4th Northern germany OpenFoam User meetiNg, 29.09.2016 thg OpenFOAM Announcements from Other Sources 1 December 2, 2016 12:34
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21


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