MFEM  v4.6.0
Finite element discretization library
Functions
mesh-fitting.hpp File Reference

Go to the source code of this file.

Functions

double circle_level_set (const Vector &x)
 
double in_circle (const Vector &x, const Vector &x_center, double radius)
 
double in_trapezium (const Vector &x, double a, double b, double l)
 
double in_parabola (const Vector &x, double h, double k, double t)
 
double in_rectangle (const Vector &x, double xc, double yc, double w, double h)
 
double reactor (const Vector &x)
 
double in_cube (const Vector &x, double xc, double yc, double zc, double lx, double ly, double lz)
 
double in_pipe (const Vector &x, int pipedir, Vector x_pipe_center, double radius, double minv, double maxv)
 
double r_intersect (double r1, double r2)
 
double r_union (double r1, double r2)
 
double r_remove (double r1, double r2)
 
double csg_cubecylsph (const Vector &x)
 
void ModifyBoundaryAttributesForNodeMovement (ParMesh *pmesh, ParGridFunction &x)
 
void ModifyAttributeForMarkingDOFS (ParMesh *pmesh, ParGridFunction &mat, int attr_to_switch)
 
void OptimizeMeshWithAMRAroundZeroLevelSet (ParMesh &pmesh, FunctionCoefficient &ls_coeff, int amr_iter, ParGridFunction &distance_s, const int quad_order=5, Array< ParGridFunction *> *pgf_to_update=NULL)
 
void ComputeScalarDistanceFromLevelSet (ParMesh &pmesh, FunctionCoefficient &ls_coeff, ParGridFunction &distance_s, const int nDiffuse=2, const int pLapOrder=5, const int pLapNewton=50)
 

Function Documentation

◆ circle_level_set()

double circle_level_set ( const Vector x)

Definition at line 20 of file mesh-fitting.hpp.

◆ ComputeScalarDistanceFromLevelSet()

void ComputeScalarDistanceFromLevelSet ( ParMesh pmesh,
FunctionCoefficient ls_coeff,
ParGridFunction distance_s,
const int  nDiffuse = 2,
const int  pLapOrder = 5,
const int  pLapNewton = 50 
)

Definition at line 444 of file mesh-fitting.hpp.

◆ csg_cubecylsph()

double csg_cubecylsph ( const Vector x)

Definition at line 148 of file mesh-fitting.hpp.

◆ in_circle()

double in_circle ( const Vector x,
const Vector x_center,
double  radius 
)

Definition at line 37 of file mesh-fitting.hpp.

◆ in_cube()

double in_cube ( const Vector x,
double  xc,
double  yc,
double  zc,
double  lx,
double  ly,
double  lz 
)

Definition at line 103 of file mesh-fitting.hpp.

◆ in_parabola()

double in_parabola ( const Vector x,
double  h,
double  k,
double  t 
)

Definition at line 60 of file mesh-fitting.hpp.

◆ in_pipe()

double in_pipe ( const Vector x,
int  pipedir,
Vector  x_pipe_center,
double  radius,
double  minv,
double  maxv 
)

Definition at line 112 of file mesh-fitting.hpp.

◆ in_rectangle()

double in_rectangle ( const Vector x,
double  xc,
double  yc,
double  w,
double  h 
)

Definition at line 67 of file mesh-fitting.hpp.

◆ in_trapezium()

double in_trapezium ( const Vector x,
double  a,
double  b,
double  l 
)

Definition at line 54 of file mesh-fitting.hpp.

◆ ModifyAttributeForMarkingDOFS()

void ModifyAttributeForMarkingDOFS ( ParMesh pmesh,
ParGridFunction mat,
int  attr_to_switch 
)

Definition at line 257 of file mesh-fitting.hpp.

◆ ModifyBoundaryAttributesForNodeMovement()

void ModifyBoundaryAttributesForNodeMovement ( ParMesh pmesh,
ParGridFunction x 
)

Definition at line 187 of file mesh-fitting.hpp.

◆ OptimizeMeshWithAMRAroundZeroLevelSet()

void OptimizeMeshWithAMRAroundZeroLevelSet ( ParMesh pmesh,
FunctionCoefficient ls_coeff,
int  amr_iter,
ParGridFunction distance_s,
const int  quad_order = 5,
Array< ParGridFunction *> *  pgf_to_update = NULL 
)

Definition at line 332 of file mesh-fitting.hpp.

◆ r_intersect()

double r_intersect ( double  r1,
double  r2 
)

Definition at line 133 of file mesh-fitting.hpp.

◆ r_remove()

double r_remove ( double  r1,
double  r2 
)

Definition at line 143 of file mesh-fitting.hpp.

◆ r_union()

double r_union ( double  r1,
double  r2 
)

Definition at line 138 of file mesh-fitting.hpp.

◆ reactor()

double reactor ( const Vector x)

Definition at line 75 of file mesh-fitting.hpp.