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

coldEngineFoam (OpenFoam 2.1.x), constant Temperature during adiabatic compression

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 20, 2013, 21:43
Default coldEngineFoam (OpenFoam 2.1.x), constant Temperature during adiabatic compression
  #1
Member
 
Martin Novák
Join Date: Dec 2012
Location: Prague
Posts: 56
Rep Power: 4
novakm is on a distinguished road
Dear Foamers.

In past two weeks I have been tempting to proove that coldEngineFoam satisfies the basic conservation laws (mass, I law of TD., ...).
Unpleasant surprise appeared in a simple adiabatic case, compression of perfect gas (air) in simple cylindre by moving of the ground ( ~ piston).
The pressure in the adiabatic process has to follow the adiabat, given by eq. pV^{kappa} = konst, where kappa = 1.4 for air (sorry for boring you with basics). However, the pressure obtained by OpenFoam does not fit even remotely the correct adiabat. Moreover, during adiabatic compression and expansion, the computed temperature remains constant.

Could you, dear Foamers, be so polite and tell me, where I made a mistake or what stands behinds the constant temperature?

Yours sincerely

Martin


The case
coldEngineFoam_adiabaticCompression.tar.gz (6.7 MB)
https://mega.co.nz/#!OABUmSyY!JAjUGi...xXhQ3Pqtv9N3tI

In order to reproduce run the Allrun.sh


For time saving purposes type in the constant/polymesh/blockMeshDict.m4

define(NPS, 50) //how many cells in the square section
define(NPD, 50) //how many cells from square section to perimeter
define(NPY, 20) // how many cells from top to bottom

to

define(NPS, 20) //how many cells in the square section
define(NPD, 20) //how many cells from square section to perimeter
define(NPY, 10) // how many cells from top to bottom
or etc.
novakm is offline   Reply With Quote

Old   February 25, 2013, 13:25
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
Hi Martin,

I was away for the weekend and didn't see your post until today. I saw that there was a bug report and fix for some issues with coldEngineFoam; did updating to these fix your problem?
mturcios777 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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
OpenFOAM 2.1.x - AMI (Arbitrary Mesh Interface) philippose OpenFOAM Running, Solving & CFD 32 June 17, 2014 13:43
Compilation error with OpenFOAM 2.1.x Martin_ OpenFOAM Installation 28 January 15, 2013 07:58
Constant heat flux with uniform temperature Jake Lee FLUENT 2 April 13, 2011 22:08
Constant wall heat flux with uniform temperature Jake FLUENT 2 September 29, 2003 11:34


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