CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

How to modify psi value from the solver level (based on reactingFoam)?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 21, 2012, 14:05
Angry How to modify psi value from the solver level (based on reactingFoam)?
New Member
Join Date: Apr 2010
Location: Connecticut
Posts: 9
Blog Entries: 1
Rep Power: 7
xinyu is on a distinguished road
Hello everyone,

I am writing a solver based on reactingFoam (1.7.1). The psi value is calculated from a user-routine, and I want to assign the value to psi and use that psi to update other thermo properties. However, in the basicThermo class, the psi is defined as const... I tried to add non-const access to psi, and there is no compilation error, but there is runtime error related to psi.oldtime(). Is there any way that I could update the psi value as well as alpha and mu from a solver level?

Thanks a lot,

xinyu is offline   Reply With Quote


reactingfoam, thermo library

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressure Based Coupled Solver A.S. Main CFD Forum 1 November 8, 2015 10:59
Pressure based and Density based Solver Xobile Main CFD Forum 18 April 13, 2015 07:49
adding radiation to reactingFoam solver Marshak OpenFOAM 1 February 13, 2012 06:43
Regarding Density based solver Eswar Main CFD Forum 2 June 6, 2007 11:00
Density based solver Eswar Main CFD Forum 2 May 29, 2007 07:29

All times are GMT -4. The time now is 11:55.