POLYFLOW - a ramp function defined via a UDF?
How to define a ramp function of time or of evolution parameter via a UDF, e.g. for use as a dependence function for a submodel? A typical function may look like (ID 315 or 316 in the present example): (deffunction UDF315 (?t) (if (< ?t 1.) then (bind ?valx 1.) else (if (< ?t 1.1) then (bind ?valx (- 11. (* 10. ?t))) else (bind ?valx .0) ) ) ?valx ) (deffunction UDF316 (?t) (if (< ?t 1.) then (bind ?valy 0.) else (if (< ?t 1.1) then (bind ?valy (- (* 10. ?t) 10.)) else (bind ?valy 1.) ) ) ?valy ) |
||
|