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

Switching to my own DPM_LAW

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2010, 04:49
Default Switching to my own DPM_LAW
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Hello World.

I'm trying to use the DEFINE_DPM_SWITCH function to switch to my own combustion law. So far no magic.

BUT: The other laws (1,4,5,6) should still be present!
Instead of law 6 I want my own law.

If I type this into a function

Code:
DEFINE_DPM_SWITCH(dpmSwitch,p,uncoupled)
{
    if (P_CURRENT_LAW(p) == 5)
    {
        P_CURRENT_LAW(p) = DPM_LAW_USER_1;
    }

}
and hook it as the new switch I'm running into the problem, that all the other switches (the standard ones to switch between law 1,4,5) are no longer present.

So, is there a way to include the standard switches, or do I have to actually type them into my own switch?!
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Old   February 2, 2010, 08:55
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20
sega is on a distinguished road
Quote:
Originally Posted by sega View Post
So, is there a way to include the standard switches, or do I have to actually type them into my own switch?!
Anybody out there?
I'm really stuck at this problem.
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega is offline   Reply With Quote

Reply

Tags
dpm_law, dpm_switch


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
Switching forum software. Import question. Peter Main CFD Forum 14 January 23, 2009 06:56
Switching Forum Software, Opinions Wanted Jonas Larsson Main CFD Forum 42 December 23, 2008 04:34
Cleaning up PATH and LD_LIBRARY_PATH when switching between different versions of OpenFOAM mbeaudoin OpenFOAM Bugs 1 March 12, 2008 04:29
3D axis switching in a turbulent jet fluidsguy1001 FLUENT 0 November 6, 2007 17:18
switching from coupled solver to segregated Oz FLUENT 2 November 8, 2006 16:02


All times are GMT -4. The time now is 23:32.