Skip to content
Snippets Groups Projects
Commit aa7bf6de authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

example of 3d function field

parent 4c609c6e
No related branches found
No related tags found
No related merge requests found
lc = 0.5;
Point(1) = {0, 0, 0, lc};
Point(2) = {1, 0, 0, lc} ;
Point(3) = {1, 1, 0, lc} ;
Point(4) = {0, 1, 0, lc} ;
Line(1) = {1,2} ;
Line(2) = {3,2} ;
Line(3) = {3,4} ;
Line(4) = {4,1} ;
Line Loop(5) = {4,1,-2,3} ;
Plane Surface(6) = {5} ;
Extrude {0,0,1} { Surface{6}; }
Function Field(1) = "Cos(2*3.14*x)/5 + 0.21";
Characteristic Length Field{1};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment