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

Overwriting Temperature in OpenFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 7, 2013, 09:20
Default Overwriting Temperature in OpenFoam
  #1
New Member
 
Ivana
Join Date: Feb 2012
Posts: 16
Rep Power: 5
IvanaS is on a distinguished road
Hi,

I coupled reactingFoam with the combustion in-house code that provides me density and temperature. I send temperature and density to OpenFoam in order to update flow field. OpenFoam uses density from combustion code properly but I have problems with temperature. OpenFoam doesn't use the temperature from the separate combustion code but one from basicThermo.

Does someone has any suggestion how to overwrite temperature in OpenFoam and make OpenFoam to use temperature calculated in the other code?
Is there a way to do it without modifying basicThermo files?

Thank you very much.

Regards,

Ivana
IvanaS is offline   Reply With Quote

Old   June 8, 2013, 06:18
Default
  #2
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 236
Rep Power: 7
fredo490 is on a distinguished road
I made somthing similar few weeks ago, here is the solution:
Change Temperature boundary by a solver (rhoPimpleFoam)
fredo490 is offline   Reply With Quote

Old   June 10, 2013, 08:17
Default
  #3
New Member
 
Ivana
Join Date: Feb 2012
Posts: 16
Rep Power: 5
IvanaS is on a distinguished road
Hi,

Thank you for your reply.

But would it be possible that I copy basicThermo to my own implementation of reactingFoam and modify it and use it from there? I am not sure how to do that? Would I also need to have "turbulenceModels/compressible/turbulenceModel" in the same directory?

I am asking this because if I change basicThermo in the top-level solver that might also influence other users of OpenFoam...

Thank you!

Regards,
Ivana
IvanaS is offline   Reply With Quote

Old   June 10, 2013, 10:57
Default
  #4
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 236
Rep Power: 7
fredo490 is on a distinguished road
If you do the modification I made in the other topic (add a member to get a variable T and not a constant T), there is no problem with the other solvers. I currently use it on my OpenFoam and everything runs fine. It simply "add" an extra function/possibility, it doesn't change anything.

But you can make it local if you want. I had this topic few weeks ago: Problem creating a new Wallfunction on OF 2.2 !
I haven't got time to write a "tutorial" yet.
fredo490 is offline   Reply With Quote

Old   June 25, 2013, 05:17
Default
  #5
New Member
 
Ivana
Join Date: Feb 2012
Posts: 16
Rep Power: 5
IvanaS is on a distinguished road
It is working! Thank you!

Regards,

Ivana
IvanaS is offline   Reply With Quote

Old   June 25, 2013, 07:32
Default
  #6
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 236
Rep Power: 7
fredo490 is on a distinguished road
You are welcome. It seems that the last update from OF 2.2 includes a code similar to the one I've showed you. So, if you don't want to change everything next time, just update OF.
fredo490 is offline   Reply With Quote

Old   June 25, 2013, 07:34
Default
  #7
New Member
 
Ivana
Join Date: Feb 2012
Posts: 16
Rep Power: 5
IvanaS is on a distinguished road
That's good to know. Thanks once more!
IvanaS is offline   Reply With Quote

Reply

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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 11 April 22, 2014 12:32
coldEngineFoam (OpenFoam 2.1.x), constant Temperature during adiabatic compression novakm OpenFOAM Verification & Validation 1 February 25, 2013 13:25
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Is wall ajacent temperature equal to conservative temperature of the wall? shenying0710 CFX 8 January 4, 2013 05:03
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33


All times are GMT -4. The time now is 10:30.