Defining complex initial conditions in session files
******************* This email 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 https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* 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
******************* This email 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 https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* 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 <mailto:vidhi.zala@utah.edu> =( _____|_|____||________| http://sci.utah.edu/people/vidhi.html <http://sci.utah.edu/people/vidhi.html>
---- R.M. Kirby Professor, School of Computing and Scientific Computing and Imaging Institute University of Utah
participants (2)
- 
                
                Mike Kirby
- 
                
                Vidhi Zala