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

3d spray vs axisymmetric spray (dieselFoam)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 1, 2011, 06:23
Default 3d spray vs axisymmetric spray (dieselFoam)
  #1
New Member
 
fairus
Join Date: Apr 2010
Posts: 20
Rep Power: 7
mfmohdyasin is on a distinguished road
Dear all,
I ran a 3d spray simulation in a cylindrical geometry using dieselFoam. No combustion. It ran fine and gave a satisfactory result.

Then I tried to simulate the same case using axisymmetric mesh with wedge BCs and 5deg wedge angle. I reduce the fuel mass flow rate by adjusting the "mass" in injectorProperties file to get the desired mfr as followed:
axisymmetric_mfr= 3d_mfr * 5/360

The log file gives a similar injection velocity as the 3d case:

"Average Velocity for injector 0: 27.1314 m/s, injection pressure = 3.90451 bar
Constructing two dimensional spray injection.Calculated angle of wedge is 5 deg."

However, when I did so, openFoam always complain with usual error message:

"attempt to use janafThermo<equationOfState> out of temperature range"

Has anyone seen similar situation?

Thanks,
Fairus
mfmohdyasin is offline   Reply With Quote

Old   June 1, 2011, 07:00
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
in axisymmetric runs you dont have to adjust the mass, foam will do that for you.
just set the value it would have for a full 3d run.
niklas is offline   Reply With Quote

Old   June 1, 2011, 10:56
Default
  #3
New Member
 
fairus
Join Date: Apr 2010
Posts: 20
Rep Power: 7
mfmohdyasin is on a distinguished road
Thanks Niklas,

Fairus
mfmohdyasin is offline   Reply With Quote

Old   August 13, 2012, 05:25
Default
  #4
New Member
 
Pang
Join Date: Mar 2011
Location: Denmark
Posts: 25
Rep Power: 6
kmpang is on a distinguished road
Hi Foamers,

I'm using OF 2.0.x. I'm trying to run the tutorial Aachen Bomb case but with a 4-degree, 2-D axisymmetry mesh. However, at half way through, I got this error message:

Evolving Spray


--> FOAM FATAL ERROR:
Hitting a wedge patch should not be possible.

From function void Foam:article::hitWedgePatch(const wedgePolyPatch& wpp, TrackData&)
in file /home/kmpan/OpenFOAM/OpenFOAM-2.0.x/src/lagrangian/basic/lnInclude/particleTemplates.C at line 941.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 void Foam:article::hitWedgePatch<Foam:arcel::tracki ngData>(Foam::wedgePolyPatch const&, Foam:arcel::trackingData&) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdieselSpray.so"
#3 double Foam:article::trackToFace<Foam:arcel::tracking Data>(Foam::Vector<double> const&, Foam:arcel::trackingData&) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdieselSpray.so"
#4 Foam:arcel::move(Foam:arcel::trackingData&, double) in "/home/kmpan/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64GccDPOpt/lib/libdieselSpray.so"
.
.
.

Aborted

I guess using 'wedge' is the correct approach to produce the mesh but may I know if it's compatible with the diesel spray application?

Thanks in advance.

Best regards,
Pang.
kmpang is offline   Reply With Quote

Old   August 13, 2012, 17:47
Default
  #5
New Member
 
Pang
Join Date: Mar 2011
Location: Denmark
Posts: 25
Rep Power: 6
kmpang is on a distinguished road
Hi again,

I have found the solution based on this document:

http://www.dhcae-tools.com/images/dh...rcelSolver.pdf

There is a little difference in the compilation though. I navigated to the location "OpenFOAM-2.0.x/src/lagrangian" and use "./Allwmake", instead of using "wmake libso" at the location "OpenFOAM-2.0.x/src/lagrangian/basic". I think that such way is to update those diesel spray libraries (in dieselFoam) as well. Looking forward to someone to confirm with me, or to correct me.

Regards,
Pang.
kmpang is offline   Reply With Quote

Old   November 5, 2013, 01:17
Default
  #6
New Member
 
RJ HO
Join Date: Dec 2012
Posts: 21
Rep Power: 4
RJ87 is on a distinguished road
I wondering if sprayFoam from OpenFoam 2.2.x has the same function of adjusting the mass like dieselFoam?

I found the adjustment codes in OpenFoam 1.6-ext. But I don't see that in sprayFoam in OpenFoam 2.2.x. Please correct me if i'm wrong. Anyway, any suggestion on how to introduce the correct mass with 2D sprayFoam case on O.F 2.2.x?
RJ87 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
DieselFoam spray thumthae OpenFOAM Running, Solving & CFD 98 December 24, 2014 16:55
DieselFoam spray model qndfekjb OpenFOAM 17 August 27, 2012 16:03
Unstable spray for small mesh size (dieselFoam) namCFD OpenFOAM 2 August 13, 2010 15:51
gasoline spray simulation using dieselFoam qhdgj OpenFOAM 8 June 25, 2009 15:51
dieselFoam with spray bug Acebobo OpenFOAM Bugs 3 April 24, 2009 02:36


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