CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Switching to my own DPM_LAW (https://www.cfd-online.com/Forums/fluent-udf/72193-switching-my-own-dpm_law.html)

sega January 28, 2010 04:49

Switching to my own DPM_LAW
 
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?!

sega February 2, 2010 08:55

Quote:

Originally Posted by sega (Post 244033)
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.


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