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

dieselFoam with spray bug

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2009, 10:18
Default dieselFoam with spray bug
  #1
New Member
 
Xu Bo
Join Date: Mar 2009
Posts: 7
Rep Power: 17
Acebobo is on a distinguished road
When I use dieselFoam to simulate spray with
collisionModel ORourke()ORourkeCoeffs{ coalescence on;}
, I found an error following:
Evolving Spray
#0 Foam::error:rintStack(Foam::Ostream&) in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigFpe::sigFpeHandler(int) in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted: [0xb7f7d420]
#3 Foam::C7H16:v(double, double) const in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquids.so"
#4 Foam::liquidMixture:v(double, double, Foam::Field<double> const&) const in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libliquidMixture.so"
#5 Foam:arcel::setRelaxationTimes(int, double&, Foam::Field<double>&, double&, Foam::Field<double>&, Foam::spray const&, double, Foam::Vector<double> const&, double, double, Foam::Field<double> const&, Foam::Field<double> const&, double) in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so"
#6 Foam:arcel::move(Foam::spray&) in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so"
#7 void Foam::Cloud<Foam:arcel>::move<Foam::spray>(Foam: :spray&) in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so"
#8 Foam::spray::move() in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so"
#9 Foam::spray::evolve() in "/root/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdieselSpray.so"
#10 main in "/root/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam"
#11 __libc_start_main in "/lib/libc.so.6"
#12 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/root/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/dieselFoam"
Floating point exception
Acebobo is offline   Reply With Quote

Old   April 20, 2009, 01:58
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
What is the setup?
is it reproducable?
niklas is offline   Reply With Quote

Old   April 23, 2009, 01:10
Default
  #3
New Member
 
Xu Bo
Join Date: Mar 2009
Posts: 7
Rep Power: 17
Acebobo is on a distinguished road
When I use collisionModel trajectory, the problem also happened.
So I debug the scource code trajectoryCM.H, I found the error in this file.
scalar vAlign = vRel & (p/dist);
When dist=0.0,the floating error is appear.On the collision model this means two droplets at the same position.So I force the value of dist not zero,everything goes well.But on collision theory it is correct?

Last edited by Acebobo; April 23, 2009 at 01:38.
Acebobo is offline   Reply With Quote

Old   April 24, 2009, 02:36
Default
  #4
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Quote:
Originally Posted by Acebobo View Post
When I use collisionModel trajectory, the problem also happened.
So I debug the scource code trajectoryCM.H, I found the error in this file.
scalar vAlign = vRel & (p/dist);
When dist=0.0,the floating error is appear.On the collision model this means two droplets at the same position.So I force the value of dist not zero,everything goes well.But on collision theory it is correct?
yes, this is a mistake.

dist is just a normalization so limiting it to SMALL ,or adding SMALL, is a good change.
scalar vAlign = vRel & (p/(dist + SMALL));

I should have realized that 2 parcels will someday occupy the same position
niklas is offline   Reply With Quote

Reply

Tags
dieselenginefoam, orourke, spray


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
DieselFoam spray thumthae OpenFOAM Running, Solving & CFD 98 December 24, 2014 15:55
DieselFoam Spray Evaporation Continuity Error spv24 OpenFOAM Running, Solving & CFD 14 December 30, 2010 10:50
Spray slows then stops coastal593 OpenFOAM Running, Solving & CFD 6 July 31, 2007 16:14
spray injection mmacrb FLUENT 0 January 10, 2007 04:57
problems with unsteady spray simulation Mathias FLUENT 1 July 20, 2006 16:13


All times are GMT -4. The time now is 05:09.