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

DieselEngineFoam heat release

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2013, 14:10
Default DieselEngineFoam heat release
  #1
ris
Member
 
ri
Join Date: Oct 2012
Posts: 34
Rep Power: 13
ris is on a distinguished road
Hello,

I am attempting to extract dQ from my simulation using simplefunctionobjects and swak4foam. I successfully implemented the following in OF2.1.x:

functions
(
volumeAverage
{
type volumeAverage;
functionObjectLibs
(
"libsimpleFunctionObjects.so"
);
verbose true;
fields
(
T
dQ
C7H16
);
factor 1;
}
);

Unfortunately due to other problems I am now using OF1.7.1 . When I add this function to the controlDict in OF1.7.1 the Temperature and C7H16 fields are successfully extracted, however I recieve the following error for dQ.

FOAM Warning :
From function probes::read()
in file volume/volumeFieldFunctionObject/volumeFieldFunctionObject.C at line 91
Unknown field dQ when reading dictionary "::volumeAverage"
Can only probe registered volScalar, volVector, volSphericalTensor, volSymmTensor and volTensor fields

Which from what I can understand, means that it cannot read/recognize dQ. Has anyone experienced this before? and does anyone know another method of extracting dQ. I have tried execFlowfuntionobjects but my thermomodel is not supported.

Many Thanks,

ris
ris is offline   Reply With Quote

Old   January 18, 2013, 12:01
Default
  #2
ris
Member
 
ri
Join Date: Oct 2012
Posts: 34
Rep Power: 13
ris is on a distinguished road
Hello,

I have another question regarding extracting the liquid penetration length from the data set during runtime. Looking in spraycloud.H , I can see there is a liquidPenetration function however I am not too familiar with c++ and have trouble in trying to output this value. Please could some point me in the direction of outputting this value to a log file during runtime or a similar output to what is present in OF2.1.x.

Many Thanks,

ris.
ris is offline   Reply With Quote

Old   January 18, 2013, 12:34
Default
  #3
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
dQ is not a registered field as it is only output as needed from the chemistry model (chemistry.dQ()). You would need to create a field registered with the object (say Dq) and update is every iteration with the chemistry (Dq = chemsitry.dQ()).

Have a look at the createFields.H for reactingParcelFoam (which is also used with sprayFoam) to see how to create a registered field.

As for penetration length, have a look at this post:
http://www.cfd-online.com/Forums/ope...netration.html

Its slightly different in 2.1.x, but there are still member functions for penetration that you could use (search through the code documentation here: http://www.openfoam.org/docs/cpp/). This would require you to modify the code, and I would recommend creating a new solver so as not to break the stock one.
mturcios777 is offline   Reply With Quote

Old   January 18, 2013, 12:39
Default
  #4
ris
Member
 
ri
Join Date: Oct 2012
Posts: 34
Rep Power: 13
ris is on a distinguished road
Thanks for the quick response, I will attempt to get something working soon.
ris is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Total heat release rate - variation not expected Bufacchi OpenFOAM Running, Solving & CFD 14 May 15, 2020 06:35
Openfoam Ubuntu 12.04 Unmet dependencies slls33 OpenFOAM Installation 10 April 9, 2013 04:16
Troubles with heat release rate Xavier Ponticq CFX 4 September 12, 2012 18:49
Laminar Finite-rate model Reaction Heat Release adjustment lam.nguyen FLUENT 0 March 6, 2012 20:52
Diesel combustion simulation ( Heat release rate) venkatesh Siemens 2 April 29, 2009 07:38


All times are GMT -4. The time now is 17:32.