mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 16:17:29 +05:00
meshing headers
This commit is contained in:
parent
807d091d9e
commit
ab0077c609
@ -7,7 +7,8 @@
|
|||||||
/* Date: 23. Aug. 09 */
|
/* Date: 23. Aug. 09 */
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
class Tcl_Interp;
|
|
||||||
|
struct Tcl_Interp;
|
||||||
|
|
||||||
namespace netgen
|
namespace netgen
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
global functions and variables
|
global functions and variables
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace netgen
|
||||||
|
{
|
||||||
|
|
||||||
///
|
///
|
||||||
DLL_HEADER extern double GetTime ();
|
DLL_HEADER extern double GetTime ();
|
||||||
extern void ResetTime ();
|
extern void ResetTime ();
|
||||||
@ -46,5 +49,6 @@ extern volatile multithreadt multithread;
|
|||||||
extern string ngdir;
|
extern string ngdir;
|
||||||
extern DebugParameters debugparam;
|
extern DebugParameters debugparam;
|
||||||
extern bool verbose;
|
extern bool verbose;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
namespace netgen
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
/// box for grading
|
/// box for grading
|
||||||
@ -180,4 +182,6 @@ inline ostream & operator<< (ostream & ost, const LocalH & loch)
|
|||||||
return ost;
|
return ost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -11,7 +11,8 @@
|
|||||||
The mesh class
|
The mesh class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
namespace netgen
|
||||||
|
{
|
||||||
|
|
||||||
enum resthtype { RESTRICTH_FACE, RESTRICTH_EDGE,
|
enum resthtype { RESTRICTH_FACE, RESTRICTH_EDGE,
|
||||||
RESTRICTH_SURFACEELEMENT, RESTRICTH_POINT, RESTRICTH_SEGMENT };
|
RESTRICTH_SURFACEELEMENT, RESTRICTH_POINT, RESTRICTH_SEGMENT };
|
||||||
@ -756,6 +757,7 @@ inline ostream& operator<<(ostream& ost, const Mesh& mesh)
|
|||||||
return ost;
|
return ost;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -12,20 +12,22 @@
|
|||||||
|
|
||||||
namespace netgen
|
namespace netgen
|
||||||
{
|
{
|
||||||
|
// extern int printmessage_importance;
|
||||||
extern int printmessage_importance;
|
|
||||||
|
|
||||||
class CSGeometry;
|
class CSGeometry;
|
||||||
|
class NetgenGeometry;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include "msghandler.hpp"
|
#include "msghandler.hpp"
|
||||||
|
|
||||||
#include "meshtype.hpp"
|
#include "meshtype.hpp"
|
||||||
#include "localh.hpp"
|
#include "localh.hpp"
|
||||||
#include "meshclass.hpp"
|
#include "meshclass.hpp"
|
||||||
#include "global.hpp"
|
#include "global.hpp"
|
||||||
|
|
||||||
|
|
||||||
|
namespace netgen
|
||||||
|
{
|
||||||
#include "meshtool.hpp"
|
#include "meshtool.hpp"
|
||||||
#include "ruler2.hpp"
|
#include "ruler2.hpp"
|
||||||
#include "adfront2.hpp"
|
#include "adfront2.hpp"
|
||||||
@ -37,17 +39,12 @@ namespace netgen
|
|||||||
#include "adfront3.hpp"
|
#include "adfront3.hpp"
|
||||||
#include "ruler3.hpp"
|
#include "ruler3.hpp"
|
||||||
|
|
||||||
#ifndef SMALLLIB
|
|
||||||
#define _INCLUDE_MORE
|
#define _INCLUDE_MORE
|
||||||
#endif
|
|
||||||
#ifdef LINUX
|
|
||||||
#define _INCLUDE_MORE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _INCLUDE_MORE
|
|
||||||
#include "meshing3.hpp"
|
#include "meshing3.hpp"
|
||||||
#include "improve3.hpp"
|
#include "improve3.hpp"
|
||||||
#endif
|
|
||||||
#include "findip.hpp"
|
#include "findip.hpp"
|
||||||
#include "findip2.hpp"
|
#include "findip2.hpp"
|
||||||
|
|
||||||
@ -55,23 +52,20 @@ namespace netgen
|
|||||||
#include "curvedelems.hpp"
|
#include "curvedelems.hpp"
|
||||||
#include "clusters.hpp"
|
#include "clusters.hpp"
|
||||||
|
|
||||||
#ifdef _INCLUDE_MORE
|
|
||||||
#include "meshfunc.hpp"
|
#include "meshfunc.hpp"
|
||||||
#endif
|
|
||||||
#include "bisect.hpp"
|
#include "bisect.hpp"
|
||||||
#include "hprefinement.hpp"
|
#include "hprefinement.hpp"
|
||||||
#include "boundarylayer.hpp"
|
#include "boundarylayer.hpp"
|
||||||
#include "specials.hpp"
|
#include "specials.hpp"
|
||||||
|
}
|
||||||
|
|
||||||
#include "validate.hpp"
|
#include "validate.hpp"
|
||||||
|
#include "basegeom.hpp"
|
||||||
|
|
||||||
#ifdef PARALLEL
|
#ifdef PARALLEL
|
||||||
#include "paralleltop.hpp"
|
#include "paralleltop.hpp"
|
||||||
// #include "../parallel/parallelmesh.hpp"
|
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#include "basegeom.hpp"
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -8,11 +8,15 @@
|
|||||||
/* Date: 01. Okt. 95 */
|
/* Date: 01. Okt. 95 */
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
|
namespace netgen
|
||||||
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Classes for NETGEN
|
Classes for NETGEN
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enum ELEMENT_TYPE {
|
enum ELEMENT_TYPE {
|
||||||
SEGMENT = 1, SEGMENT3 = 2,
|
SEGMENT = 1, SEGMENT3 = 2,
|
||||||
TRIG = 10, QUAD=11, TRIG6 = 12, QUAD6 = 13, QUAD8 = 14,
|
TRIG = 10, QUAD=11, TRIG6 = 12, QUAD6 = 13, QUAD8 = 14,
|
||||||
@ -1293,7 +1297,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
namespace netgen
|
||||||
|
{
|
||||||
|
|
||||||
extern void PrintDot(char ch = '.');
|
extern void PrintDot(char ch = '.');
|
||||||
|
|
||||||
|
|
||||||
@ -47,6 +50,7 @@ extern void PushStatusF(const MyStr& s);
|
|||||||
extern void PopStatus();
|
extern void PopStatus();
|
||||||
extern void SetThreadPercent(double percent);
|
extern void SetThreadPercent(double percent);
|
||||||
extern void GetStatus(MyStr & s, double & percentage);
|
extern void GetStatus(MyStr & s, double & percentage);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#ifndef FILE_PARALLELTOP
|
#ifndef FILE_PARALLELTOP
|
||||||
#define FILE_PARALLELTOP
|
#define FILE_PARALLELTOP
|
||||||
|
|
||||||
#include <meshing.hpp>
|
namespace netgen
|
||||||
|
{
|
||||||
|
|
||||||
extern int ntasks;
|
extern int ntasks;
|
||||||
|
|
||||||
@ -261,7 +262,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#ifndef VALIDATE_HPP
|
#ifndef VALIDATE_HPP
|
||||||
#define VALIDATE_HPP
|
#define VALIDATE_HPP
|
||||||
|
|
||||||
|
namespace netgen
|
||||||
|
{
|
||||||
|
|
||||||
void GetPureBadness(Mesh & mesh, Array<double> & pure_badness,
|
void GetPureBadness(Mesh & mesh, Array<double> & pure_badness,
|
||||||
const BitArray & isnewpoint);
|
const BitArray & isnewpoint);
|
||||||
@ -9,9 +10,12 @@ double Validate(const Mesh & mesh, Array<ElementIndex> & bad_elements,
|
|||||||
const Array<double> & pure_badness,
|
const Array<double> & pure_badness,
|
||||||
double max_worsening, const bool uselocalworsening,
|
double max_worsening, const bool uselocalworsening,
|
||||||
Array<double> * quality_loss = NULL);
|
Array<double> * quality_loss = NULL);
|
||||||
void RepairBisection(Mesh & mesh, Array<ElementIndex> & bad_elements, const BitArray & isnewpoint, const Refinement & refinement,
|
void RepairBisection(Mesh & mesh, Array<ElementIndex> & bad_elements,
|
||||||
|
const BitArray & isnewpoint, const Refinement & refinement,
|
||||||
const Array<double> & pure_badness,
|
const Array<double> & pure_badness,
|
||||||
double max_worsening, const bool uselocalworsening,
|
double max_worsening, const bool uselocalworsening,
|
||||||
const Array< Array<int,PointIndex::BASE>* > & idmaps);
|
const Array< Array<int,PointIndex::BASE>* > & idmaps);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#endif // VALIDATE_HPP
|
#endif // VALIDATE_HPP
|
||||||
|
@ -5,7 +5,7 @@ dist_pkgdata_DATA = boxcyl.geo circle_on_cube.geo cone.geo cube.geo \
|
|||||||
cylsphere.geo ellipsoid.geo ellipticcyl.geo extrusion.geo fichera.geo lshape3d.geo \
|
cylsphere.geo ellipsoid.geo ellipticcyl.geo extrusion.geo fichera.geo lshape3d.geo \
|
||||||
manyholes.geo manyholes2.geo matrix.geo ortho.geo period.geo revolution.geo \
|
manyholes.geo manyholes2.geo matrix.geo ortho.geo period.geo revolution.geo \
|
||||||
sculpture.geo shaft.geo shell.geo sphere.geo sphereincube.geo torus.geo trafo.geo \
|
sculpture.geo shaft.geo shell.geo sphere.geo sphereincube.geo torus.geo trafo.geo \
|
||||||
twobricks.geo twocubes.geo twocyl.geo \
|
twobricks.geo twocubes.geo twocyl.geo boundarycondition.geo \
|
||||||
hinge.stl part1.stl frame.step screw.step \
|
hinge.stl part1.stl frame.step screw.step \
|
||||||
squarehole.in2d squarecircle.in2d square.in2d
|
squarehole.in2d squarecircle.in2d square.in2d
|
||||||
|
|
||||||
|
16
tutorials/boundarycondition.geo
Normal file
16
tutorials/boundarycondition.geo
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
algebraic3d
|
||||||
|
|
||||||
|
solid p1 = plane (0.5, 0, 0; 1, 0, 0);
|
||||||
|
|
||||||
|
# since surfaces of both bricks are identic they get the same bc id:
|
||||||
|
solid brick1 = orthobrick (0,0,0; 1,1,1) and p1 -bc=1;
|
||||||
|
solid brick2 = orthobrick (0,0,-1; 1,1,0) and p1 -bc=2;
|
||||||
|
|
||||||
|
|
||||||
|
tlo brick1;
|
||||||
|
tlo brick2;
|
||||||
|
|
||||||
|
# override bc number:
|
||||||
|
# all faces of solid p1 belonging to the boundary of tlo brick1 get bc=3
|
||||||
|
|
||||||
|
boundarycondition p1 brick1 3;
|
Loading…
x
Reference in New Issue
Block a user