MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mesh-fitting.hpp File Reference

Go to the source code of this file.

Functions

real_t circle_level_set (const Vector &x)
 
real_t in_circle (const Vector &x, const Vector &x_center, real_t radius)
 
real_t in_trapezium (const Vector &x, real_t a, real_t b, real_t l)
 
real_t in_parabola (const Vector &x, real_t h, real_t k, real_t t)
 
real_t in_rectangle (const Vector &x, real_t xc, real_t yc, real_t w, real_t h)
 
real_t reactor (const Vector &x)
 
real_t in_cube (const Vector &x, real_t xc, real_t yc, real_t zc, real_t lx, real_t ly, real_t lz)
 
real_t in_pipe (const Vector &x, int pipedir, Vector x_pipe_center, real_t radius, real_t minv, real_t maxv)
 
real_t r_intersect (real_t r1, real_t r2)
 
real_t r_union (real_t r1, real_t r2)
 
real_t r_remove (real_t r1, real_t r2)
 
real_t 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()

real_t 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()

real_t csg_cubecylsph ( const Vector & x)

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

◆ in_circle()

real_t in_circle ( const Vector & x,
const Vector & x_center,
real_t radius )

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

◆ in_cube()

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

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

◆ in_parabola()

real_t in_parabola ( const Vector & x,
real_t h,
real_t k,
real_t t )

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

◆ in_pipe()

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

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

◆ in_rectangle()

real_t in_rectangle ( const Vector & x,
real_t xc,
real_t yc,
real_t w,
real_t h )

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

◆ in_trapezium()

real_t in_trapezium ( const Vector & x,
real_t a,
real_t b,
real_t 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()

real_t r_intersect ( real_t r1,
real_t r2 )

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

◆ r_remove()

real_t r_remove ( real_t r1,
real_t r2 )

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

◆ r_union()

real_t r_union ( real_t r1,
real_t r2 )

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

◆ reactor()

real_t reactor ( const Vector & x)

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