This email from vidhi.zala@utah.edu originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list to disable email stamping for this address.

 

Hi,

Please ignore. I figured it out. Implemented the min() function call inside Interpreter.cpp.

Will be checking in soon.

Cheers,

V

On Thu, 7 Jul 2022 at 15:39, Vidhi Zala <vidhi.zala@utah.edu> wrote:
Hi Mike,

Yes, min() seems to be the culprit. If you point me to where can I implement it, that would be great.
I can find a workaround to not use min () in initial condition but the function is complicated enough already.

V

On Thu, 7 Jul 2022 at 05:30, Mike Kirby <kirby@cs.utah.edu> wrote:

Hi -

   Did you try the expression without min(.) to verify that min is the problem?   Min may not exist in the set of functions implemented (currently), but could be added.

Cheers
Mike



On Jul 7, 2022, at 3:33 AM, Vidhi Zala <vidhi.zala@utah.edu> wrote:

Hi everyone,

I am looking for a way to define initial conditions which contain min() function. Can someone point to an example/syntax for the same? I am currently getting an error saying 

Message : Equation::Equation() fails on expression
 [(0.25*(1+cos(PI*min(sqrt(pow(x-bell_x0,2) + pow(y-bell_y0,2))/bell_r0, 1.0))))]

Thanks
V
--
   ,-~~-.___._.
  / |  '     \    | |--------. Vidhi Zala
 (  )         0   | |        | Intel Corp.
  \_/-, ,----'    | |        | School of Computing
     ====         !_!-v---v--. Scientific Computing and Imaging Institute
     /  \-'~;      .--------.  University of Utah
    /  __/~| ._-""||        |  vidhi.zala@utah.edu 
  =(  _____|_|____||________|  http://sci.utah.edu/people/vidhi.html 


----
R.M. Kirby
Professor, School of Computing  
     and Scientific Computing and Imaging Institute
University of Utah



--
   ,-~~-.___._.
  / |  '     \    | |--------. Vidhi Zala
 (  )         0   | |        | Intel Corp.
  \_/-, ,----'    | |        | School of Computing
     ====         !_!-v---v--. Scientific Computing and Imaging Institute
     /  \-'~;      .--------.  University of Utah
    /  __/~| ._-""||        |  vidhi.zala@utah.edu 
  =(  _____|_|____||________|  http://sci.utah.edu/people/vidhi.html 



--
   ,-~~-.___._.
  / |  '     \    | |--------. Vidhi Zala
 (  )         0   | |        | Intel Corp.
  \_/-, ,----'    | |        | School of Computing
     ====         !_!-v---v--. Scientific Computing and Imaging Institute
     /  \-'~;      .--------.  University of Utah
    /  __/~| ._-""||        |  vidhi.zala@utah.edu 
  =(  _____|_|____||________|  http://sci.utah.edu/people/vidhi.html