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

Switching to my own DPM_LAW

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 28, 2010, 05: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: 11
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, 09:55
Default
  #2
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
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

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


All times are GMT -4. The time now is 00:40.