On Fri, 8 Apr 2016, Salazar De Troya, Miguel wrote:
> x > 0 && x < L && y > 0 && y < d
> I wonder if there are functions within libMesh that can make my life
> easier and if this has done before. I think I could use a
> ParsedFunction for this simple example, but I want more complicated
> geometries. I would like that rectangle to have a circular notch on
> the top side, for instance.
You can do constructive geometry with ParsedFunction. Even that
rectangle was expressed as the intersection of four half-planes, and
the subtraction of a circle would be similar:
((x>0)*(x<L)*(y>0)*(y<d)*((x-L/2)^2+(y-d)^2<r^2
The only big limitation I've noticed with fparser is that inline you
can only define new variables ("a:=4;y^a"); you can't define new
functions ("fourth(in):=in^4;fourth(y)") except in C/C++ code.
---
Roy
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users