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

setting up the custom laws for particle injection

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 8, 2010, 12:33
Default setting up the custom laws for particle injection
  #1
ljp
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 16
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, 16:06
Default
  #2
ljp
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 16
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, 06:19
Default
  #3
New Member
 
sreenivasa rao gubba
Join Date: Sep 2010
Location: Leeds University, UK
Posts: 28
Rep Power: 16
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, 12:23
Default
  #4
ljp
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 16
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

Old   February 6, 2018, 05:59
Default setting up the custom laws for particle injection
  #5
New Member
 
sowmi
Join Date: Mar 2017
Posts: 14
Rep Power: 9
Sowmi is on a distinguished road
hi Ijp
what was your 3rd user law other than heating law and vapourization law. Can you guide me to write the udf for custom law or any sample code. I studied the udf law example in udf user guide but it is very confusing.

Thank you in advance.
Sowmi is offline   Reply With Quote

Reply


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
surface injection or point injection? sukura_1984 FLUENT 0 September 2, 2009 10:26
For setting INJECTION TYPE MANOJKUMAR FLUENT 0 December 27, 2005 05:08
Ultra high temperature? bk Siemens 2 July 19, 2005 01:01
Warning 097- AB Siemens 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 06:10.