tony.karam2
Subscriber

Hello,

I am trying to stop the transient simulation when any of the below-described liquid fraction definitions becomes less than 0.1:

  • volume-average liquid fraction (I named it "liquid_fraction_va_pcm_all")
  • mass-average liquid fraction (I named it "liquid_fraction_ma_pcm_all")

How can I modify the below command to achive my target:

(if ( < 0 (pick-a-real "/rep/volume/volume-avg 6 , pressure n")) (set! mstop? #t))