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

setting up the custom laws for particle injection

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 8, 2010, 11:33
Default setting up the custom laws for particle injection
  #1
ljp
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 8
ljp is on a distinguished road
Hi,

I'm confused about setting up the custom laws at the "set particle injection" panel, could anyone please clarify that for me?

I need to use the Fluent built-in inert-heating law and the vaporization law, and I wrote another user-defined law to change particle's diameter when certain conditions are met. I also wrote a dpm-switch udf. My question are:

1. About hooking the laws at the custom law panel: should I select inert-heating as the first law, vaporization as the 2nd law, and my user-law as 3rd law, then hook my dpm-switch; or, should I select my user-law as the first law, and make other entries (from 2nd law to 7th law) inactive?

2. About the dpm-switch udf: do I only include the condition to switch from vaporization law to my user-law, or do I also need to include the condition to switch between the built-in inert-heating and vaporization laws? In latter case, the controling parameter is DPM_VAPOR_TEMP(p,m), then how can I get the pointer m?

Any help or suggestions would be much appreciated. Thank you in advance!

ljp
ljp is offline   Reply With Quote

Old   April 9, 2010, 15:06
Default
  #2
ljp
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 8
ljp is on a distinguished road
I tried several ways but none of them can give me correct field:

1. putting the inert-heating, vaporization law as the 1st and 2nd law, and my user-law as 3rd law, default dpm-switch ------ wrong results;
2. putting my user-law as 1st law, and make other laws inactive, using my own dpm-switch ------- wrong results;
3. putting my user-law as 1st law, inert-heating as 2nd law, vaporization as 3rd law, using my own dpm-switch ------- wrong results;

I think something is wrong with my dpm-switch udf, especially the part for switching between the built-in laws, I list the relavant part below. Has anyone used the custom laws before? could you help me here?

DEFINE_DPM_SWITCH(dpmlaw_switch, p, ci)
{
Material *m;

if(P_T(p) < DPM_VAPOR_TEMP(p,m))
P_CURRENT_LAW(p) = DPM_LAW_INITIAL_INERT_HEATING;
else if(specific condition)
{
if(P_T(p) < DPM_BOILING_TEMPERATURE(p,m))
P_CURRENT_LAW(p) = DPM_LAW_VAPORIZATION;
}
else
P_CURRENT_LAW(p) = DPM_LAW_USER_1;
}

Thanks a lot!

ljp
ljp is offline   Reply With Quote

Old   September 21, 2010, 05:19
Default
  #3
New Member
 
sreenivasa rao gubba
Join Date: Sep 2010
Location: Leeds University, UK
Posts: 27
Rep Power: 8
sreerao is on a distinguished road
Hi IJP,

I am facing similar probelm with DPM_SWITCH. Did you find any solution for your probelm. Would you like to share it with me please?

Sreerao
sreerao is offline   Reply With Quote

Old   September 21, 2010, 11:23
Default
  #4
ljp
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 8
ljp is on a distinguished road
Hi Sreerao,

finally on the custom-law panel, I set the inert-heating law as 1st law, vaporization law as 2nd law and user-law as 3rd law. and included the switch between these laws. Then when I included the gravity effect and the breakup model, the results looks what I'd expect. But honestly I'm still not sure whether this is correct until I can have some experimental measurements done.

regards,
ljp
ljp 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
surface injection or point injection? sukura_1984 FLUENT 0 September 2, 2009 09:26
For setting INJECTION TYPE MANOJKUMAR FLUENT 0 December 27, 2005 05:08
Ultra high temperature? bk CD-adapco 2 July 19, 2005 00:01
Warning 097- AB CD-adapco 6 November 15, 2004 05:41
using injection file and parallel process Cindy Jones FLUENT 0 January 23, 2003 13:40


All times are GMT -4. The time now is 22:54.