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

Odd initial parcel found

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2006, 08:31
Default I'm doing a spray simulation,
  #1
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
fabianpk is on a distinguished road
I'm doing a spray simulation, where I'm going through all the parcels to sum up their properties. Before my forloop I check if the spray is empty by checking value of:

mySpray.size()

this returns 1 in the first iteration, but it's an odd parcel it has found. It has garbage velocity, diameter, position, and when I check which injector it's been injected from it returns something like 1.19889e+195. If I try using the elmnt().onBoundary() to check if it's outside domain or on boundary, it gives me the value 2. However, if I then add

if (elmnt().onBoundary()<2)

to my code, it's altered to 0, but the parcel is still in the same position. So I'm wondering:

If mySpray.size() returns 1, does that mean I have a parcel or not?

Is there some other value to trust than size() for when I have parcels in my domain?

Is there any other function I can use to check if my parcel really is in the domain? As this would be an alternative way of checking if my parcel is 'real'.

/Fabian
fabianpk is offline   Reply With Quote

Old   July 28, 2006, 06:08
Default Ok sorry for spam, but I reali
  #2
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
fabianpk is on a distinguished road
Ok sorry for spam, but I realize that my questions have been a bit lacking of info, so I've boiled it down to this.

I'd like to access the spray class, parcels etc, within the turbulence model. What's the best way for doing this?
I tried making a new turbulence class that has the spray in the constructor, but it didn't make a proper reference to the spray.
fabianpk 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
DPM parcel concept raba_eto FLUENT 4 May 6, 2013 08:17
DPM Parcel Number Problem Shane FLUENT 7 October 25, 2012 08:24
parcel injection error #019 mepgzzi CD-adapco 3 June 1, 2008 10:11
particle, parcel and mass flow rate balance flybird FLUENT 0 May 24, 2007 10:44
Nsd coomand not found miwesse OpenFOAM Installation 1 May 22, 2007 11:56


All times are GMT -4. The time now is 18:02.