### Generating a boundary in GMSH using a function.

135

views

0

Hi,

I have a function like:

$r\left(\theta\right)=1+cos\left(\theta\right)+sin\left(\theta\right),$

for \theta in [0,2Pi].

How can I use GMSH to create a closed 2-D boundary using this function?

Thanks
Could you use a spline to approximate that? Maybe this will help.

I have a function like:

$r\left(\theta\right)=1+cos\left(\theta\right)+sin\left(\theta\right),$

`r`(`θ`)=1+`c``o``s`(`θ`)+`s``i``n`(`θ`),for \theta in [0,2Pi].

How can I use GMSH to create a closed 2-D boundary using this function?

Thanks

Community: FEniCS Project

written
4 months ago by
Dan Sweeney

### 1 Answer

2

Hi Nima,

Check this link

https://openfoamwiki.net/index.php/2D_Mesh_Tutorial_using_GMSH

In the section "3.1 2D axisymmetric stenosis" may give ideas about how to solve your problem

Check this link

https://openfoamwiki.net/index.php/2D_Mesh_Tutorial_using_GMSH

In the section "3.1 2D axisymmetric stenosis" may give ideas about how to solve your problem

Please login to add an answer/comment or follow this question.