Outils pour utilisateurs

Outils du site


sunfluidh:th2s_meshgen

Ceci est une ancienne révision du document !


Hyperbolic tangent function "two side"

Click here to come back to the previous page


Description:

Function with an extremum.
Cell size is refined at left and right tips of the segment.

Namelist :

 &MESH_FUNCTION_DATA  Function_Name="TANH_TWO_SIDES"  ,
                      Number_of_Cells= 32 ,
                      Length= 1.0  ,
                      Left_Cell_Size= 2.0d-02 ,
                      Right_Cell_Size= 3.0d-02 ,
                      Reverse_Ordering= .false. /

Cell size distribution h(l) :

$L=\text{Length}$
$N=\text{Number_of_Cells}$
$\alpha(l)$ is function of $\text{Left_Cell_Size}$ and $\text{Right_Cell_Size}$.
$x(l)$ is the coordinate.
$h(l)$ is the cell size.
$l$ is the cell index.

\begin{align*} x(1)&= 0 \\ F(l)&=\frac{1}{2}(1 + \tanh( \alpha(l)(\frac{l-1}{N})-\frac{1}{2})/\tanh(\frac{1}{2}) \alpha(l)), 2 \leq l \leq N+1\\ x(l)&= L \cdot (\frac{F(l)}{\alpha(l) + (1- \alpha(l)) F(l)})\\ x(N+1)&= L \\ h(l)&= x(l+1)-x(l)\\ \end{align*}

Click here to come back to the previous page

Traductions de cette page:
  • fr
sunfluidh/th2s_meshgen.1512315122.txt.gz · Dernière modification : 2017/12/03 16:32 de yann

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki