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

aachenBomb with sprayFOAM not working

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

Like Tree1Likes
  • 1 Post By mturcios777

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2012, 06:01
Default aachenBomb with sprayFOAM not working
  #1
New Member
 
Jens Keller
Join Date: Nov 2011
Location: Karlsruhe
Posts: 5
Rep Power: 14
jenzkeller is on a distinguished road
Hi,

why is the aachenBomb tutorial with the solver sprayFOAM in OpenFOAM 2.1.x not working? I have updated my Foam version today!

At first OpenFOAM tells me that:

Code:
keyword massFlowRate is undefined in dictionary run/tutorials/lagrangian/sprayFoam/aachenBomb/constant/sprayCloudProperties::subModels::coneNozzleInjectionCoeffs
after adding

Code:
massFlowRate 1e-3;
to the dictionary i got the next error:

Code:
#0  Foam::error::printStack(Foam::Ostream&) in "/home/XXX/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/home/XXX/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2   in "/lib64/libc.so.6"
#3  Foam::cachedRandom::scalar01() in "/home/XXX/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4  Foam::ConeNozzleInjection<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::ConeNozzleInjection(Foam::dictionary const&, Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > >&) in "/home/XXX/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/liblagrangianSpray.so"
#5  Foam::InjectionModel<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > >::adddictionaryConstructorToTable<Foam::ConeNozzleInjection<Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > > > >::New(Foam::dictionary const&, Foam::KinematicCloud<Foam::Cloud<Foam::SprayParcel<Foam::ReactingParcel<Foam::ThermoParcel<Foam::KinematicParcel<Foam::particle> > > > > >&) in "/home/XXX/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/liblagrangianSpray.so"
So whats happening?
jenzkeller is offline   Reply With Quote

Old   February 9, 2012, 12:58
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Jens,

The git version isn't always very stable. They made some changes to the git version, which affects that tutorial, namely this one: https://github.com/OpenFOAM/OpenFOAM...9e9c33a0fbe341

I think the related change is being tracked here: http://www.openfoam.com/mantisbt/view.php?id=407 - you can properly complain there

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 9, 2012, 13:30
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
I'm the one who has reported on the issue. I guess the tutorial case hasn't been updated to reflect the changes. I've uploaded a sprayCloudProperties that works with the current version of sprayFoam (tested this morning), just copy it over and remove the extension.

There are a lot of new entries that I'm still figuring out. Mainly I'd like to know what the constantProperties part of the file defines for the parcels. Still looking for answers, will post when I find anything of note.

EDIT: I'd performed some limited testing and it appears that rho0,T0 and Cp0 are the properties of parcels as they are introduced into the domain. As the file currently stands, the r0, cp0 are for water at atmospheric pressure and T0. The dieselSpray class used to pull the properties from whatever liquid you were injecting at the stated conditions automatically. I'm still figuring out what properties get used where, as I think it would be better to obtain properties from liquidProperties.
Attached Files
File Type: txt sprayCloudProperties.txt (5.2 KB, 184 views)

Last edited by mturcios777; February 9, 2012 at 15:23.
mturcios777 is offline   Reply With Quote

Old   February 11, 2012, 05:05
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
i dont understand why you need to define massFlowRate, it looks like
you have some old files still hanging around.
If you do you can get some weird effect.
Have you done clean in lagrangian/intermediate and then wake libso?

still, I think you need to give it at keyword before the value.
Like
massFlowRate constant 1.0;
niklas is offline   Reply With Quote

Old   February 13, 2012, 04:54
Default
  #5
New Member
 
Jens Keller
Join Date: Nov 2011
Location: Karlsruhe
Posts: 5
Rep Power: 14
jenzkeller is on a distinguished road
Quote:
Originally Posted by niklas View Post
i dont understand why you need to define massFlowRate, it looks like
you have some old files still hanging around.
If you do you can get some weird effect.
Have you done clean in lagrangian/intermediate and then wake libso?

still, I think you need to give it at keyword before the value.
Like
massFlowRate constant 1.0;
thx

it works now!
jenzkeller is offline   Reply With Quote

Old   May 15, 2014, 03:16
Default
  #6
New Member
 
raviteja
Join Date: Feb 2014
Posts: 2
Rep Power: 0
sraviteja is on a distinguished road
Could you please tell tell me ,how to specify the injection pressure in sprayfoam aachen box example. There was an option in dieselFoam, But i dont find it in sprayfoam.
sraviteja is offline   Reply With Quote

Old   June 5, 2014, 15:07
Default
  #7
Member
 
yes
Join Date: Apr 2014
Posts: 32
Rep Power: 11
ENKIME is on a distinguished road
Dear Marco
I read a post from you days ago about the changes that appear in sprayFoam and I have the same question that Raviteja, I need to change the injection pressure, where is that value or how can I add to the spray properties?.
I use the OpenFoam wiki about injection pressure but they make reference about the dieselFoam solver, where you can easily change the injection pressure, and add a line with the scalar value as set in the coneNozzleinjector.C.
duration 1.2e-3;
position ( 0 0.0795 0 );
direction ( 0 -1 0 );
//..Pressure added
injectionPressure 800.0e+5;
Really running out of ideas.
Any advice will be very gratefully.
Thanks a lot
Kind regards
ENKIME is offline   Reply With Quote

Old   June 6, 2014, 14:18
Default
  #8
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
You should use the coneNozzleInjection injector model, which should give you access to a parameter called Pinj which is the injection pressure.
omid20110 likes this.
mturcios777 is offline   Reply With Quote

Old   June 8, 2014, 19:01
Default
  #9
Member
 
yes
Join Date: Apr 2014
Posts: 32
Rep Power: 11
ENKIME is on a distinguished road
Thanks a lot my friend I'm also change to pressureDrivenvelocity
King regards
ENKIME is offline   Reply With Quote

Reply

Tags
sprayfoam

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
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 03:01
ICEM working directory setting Bogesz CFX 2 October 8, 2008 08:45
Working Principle of Micro-Oven aero Siemens 2 January 31, 2007 06:00
Help required on working of Micro-oven aero CFX 4 January 19, 2007 09:21
Help required on working of Woven aero FLUENT 0 January 16, 2007 07:25


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