On Thu, 17 Mar 2016, Salazar De Troya, Miguel wrote:
What do you mean using parsed functions? Maybe passing something like
³x[0] < xmax && x[0] > xmin && y[0] < ymax && y[0] < ymin², but with
defined xmax, xmin, ymax, ymin? How would this functionality be integrated
in libMesh? The src/apps/meshbcids.C seems isolated.
Sure; it's an application, not to be called by other code. The point
is to let users do something basic from the command line right away
rather than having to write C++ for it.
ParsedFunctions would make that more flexible.
You'd have a single parseable argument like
"--condition '(x>1)*(x<2)*(y>0)*(y<0.5)'"
Instead of running with argument values like
"--minpointx 1 --maxpointx 2 --minpointy 0 --maxpointy 0.5"
And having the conditions those values apply to hard-coded.
With a ParsedFunction version, you'd be able to do something like
"--condition '(x>0)*(y>0)*(x+y<1)'
to create a triangular subdomain. With the hard-coded version you'd
have to add new increasingly-Byzantine argument options and then
recompile.
---
Roy
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users