mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
added missing file
This commit is contained in:
parent
78736845ca
commit
22e83bf294
@ -329,6 +329,7 @@ namespace netgen
|
|||||||
const OneSurfacePrimitive * sp = dynamic_cast< const OneSurfacePrimitive * > (GetSurface(i));
|
const OneSurfacePrimitive * sp = dynamic_cast< const OneSurfacePrimitive * > (GetSurface(i));
|
||||||
const ExtrusionFace * ef = dynamic_cast< const ExtrusionFace * > (GetSurface(i));
|
const ExtrusionFace * ef = dynamic_cast< const ExtrusionFace * > (GetSurface(i));
|
||||||
const RevolutionFace * rf = dynamic_cast< const RevolutionFace * > (GetSurface(i));
|
const RevolutionFace * rf = dynamic_cast< const RevolutionFace * > (GetSurface(i));
|
||||||
|
const DummySurface * dummyf = dynamic_cast< const DummySurface * > (GetSurface(i));
|
||||||
|
|
||||||
|
|
||||||
if(sp)
|
if(sp)
|
||||||
@ -347,6 +348,11 @@ namespace netgen
|
|||||||
out << "revolutionface ";
|
out << "revolutionface ";
|
||||||
rf->GetRawData(coeffs);
|
rf->GetRawData(coeffs);
|
||||||
}
|
}
|
||||||
|
else if(dummyf)
|
||||||
|
{
|
||||||
|
out << "dummy ";
|
||||||
|
coeffs.SetSize(0);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
throw NgException ("Cannot write csg surface. Please, contact developers!");
|
throw NgException ("Cannot write csg surface. Please, contact developers!");
|
||||||
|
|
||||||
@ -438,6 +444,15 @@ namespace netgen
|
|||||||
AddSurface(rf);
|
AddSurface(rf);
|
||||||
delete_them.Append(rf);
|
delete_them.Append(rf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if(classname == "dummy")
|
||||||
|
{
|
||||||
|
Surface * surf = new DummySurface();
|
||||||
|
|
||||||
|
AddSurface(surf);
|
||||||
|
delete_them.Append(surf);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -664,14 +664,8 @@ namespace netgen
|
|||||||
perfstepsstart = MESHCONST_MESHVOLUME;
|
perfstepsstart = MESHCONST_MESHVOLUME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (perfstepsstart <= MESHCONST_ANALYSE)
|
if (perfstepsstart <= MESHCONST_ANALYSE)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
delete mesh;
|
|
||||||
mesh = new Mesh();
|
|
||||||
*/
|
|
||||||
if (mesh)
|
if (mesh)
|
||||||
mesh -> DeleteMesh();
|
mesh -> DeleteMesh();
|
||||||
else
|
else
|
||||||
|
@ -189,10 +189,6 @@ public:
|
|||||||
const Box<3> & /* boundingbox */,
|
const Box<3> & /* boundingbox */,
|
||||||
double /* facets */ ) const { };
|
double /* facets */ ) const { };
|
||||||
|
|
||||||
#ifdef MYGRAPH
|
|
||||||
///
|
|
||||||
virtual void Plot (const class ROT3D & /* rot */) const { };
|
|
||||||
#endif
|
|
||||||
|
|
||||||
string GetBCName() const { return bcname; }
|
string GetBCName() const { return bcname; }
|
||||||
|
|
||||||
@ -214,6 +210,29 @@ INSOLID_TYPE;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class DummySurface : public Surface
|
||||||
|
{
|
||||||
|
virtual double CalcFunctionValue (const Point<3> & point) const
|
||||||
|
{ return 0; }
|
||||||
|
|
||||||
|
virtual void CalcGradient (const Point<3> & point, Vec<3> & grad) const
|
||||||
|
{ grad = Vec<3> (0,0,0); }
|
||||||
|
|
||||||
|
virtual Point<3> GetSurfacePoint () const
|
||||||
|
{ return Point<3> (0,0,0); }
|
||||||
|
|
||||||
|
virtual double HesseNorm () const
|
||||||
|
{ return 0; }
|
||||||
|
|
||||||
|
virtual void Project (Point<3> & p) const
|
||||||
|
{ ; }
|
||||||
|
|
||||||
|
virtual void Print (ostream & ost) const
|
||||||
|
{ ost << "dummy surface"; }
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Primitive
|
class Primitive
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -2477,8 +2477,7 @@ namespace netgen
|
|||||||
GetNSE(), " Surface Elements");
|
GetNSE(), " Surface Elements");
|
||||||
|
|
||||||
|
|
||||||
int i;
|
for (int i = 0; i < GetNSE(); i++)
|
||||||
for (i = 0; i < GetNSE(); i++)
|
|
||||||
{
|
{
|
||||||
const Element2d & el = surfelements[i];
|
const Element2d & el = surfelements[i];
|
||||||
int j;
|
int j;
|
||||||
@ -2532,7 +2531,7 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < GetNSeg(); i++)
|
for (int i = 0; i < GetNSeg(); i++)
|
||||||
{
|
{
|
||||||
const Segment & seg = segments[i];
|
const Segment & seg = segments[i];
|
||||||
const Point3d & p1 = points[seg.p1];
|
const Point3d & p1 = points[seg.p1];
|
||||||
|
@ -22,6 +22,8 @@ namespace netgen
|
|||||||
|
|
||||||
Array<INDEX_2> connectednodes;
|
Array<INDEX_2> connectednodes;
|
||||||
|
|
||||||
|
if (&mesh3d.LocalHFunction() == NULL) mesh3d.CalcLocalH();
|
||||||
|
|
||||||
mesh3d.Compress();
|
mesh3d.Compress();
|
||||||
|
|
||||||
// mesh3d.PrintMemInfo (cout);
|
// mesh3d.PrintMemInfo (cout);
|
||||||
@ -157,7 +159,7 @@ namespace netgen
|
|||||||
mesh3d.VolumeElement(i).SetIndex (k);
|
mesh3d.VolumeElement(i).SetIndex (k);
|
||||||
|
|
||||||
(*testout)
|
(*testout)
|
||||||
<< "mesh has " << mesh3d.GetNE() << " prism/pyramid elements" << endl;
|
<< "mesh has " << mesh3d.GetNE() << " prism/pyramid elements" << endl;
|
||||||
|
|
||||||
mesh3d.FindOpenElements(k);
|
mesh3d.FindOpenElements(k);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ Partition_Loop3d.hxx Partition_Spliter.hxx Partition_Inter2d.ixx \
|
|||||||
Partition_Loop2d.ixx Partition_Loop.ixx Partition_Inter3d.ixx \
|
Partition_Loop2d.ixx Partition_Loop.ixx Partition_Inter3d.ixx \
|
||||||
Partition_Loop3d.ixx Partition_Spliter.ixx Partition_Inter2d.jxx \
|
Partition_Loop3d.ixx Partition_Spliter.ixx Partition_Inter2d.jxx \
|
||||||
Partition_Loop2d.jxx Partition_Loop.jxx Partition_Inter3d.jxx \
|
Partition_Loop2d.jxx Partition_Loop.jxx Partition_Inter3d.jxx \
|
||||||
Partition_Loop3d.jxx Partition_Spliter.jxx
|
Partition_Loop3d.jxx Partition_Spliter.jxx utilities.h
|
||||||
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(OCCFLAGS)
|
AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include $(OCCFLAGS)
|
||||||
|
@ -1188,7 +1188,7 @@ namespace netgen
|
|||||||
|
|
||||||
for (int iy = 0, ii = 0; iy <= n; iy++)
|
for (int iy = 0, ii = 0; iy <= n; iy++)
|
||||||
for (int ix = 0; ix <= n; ix++, ii++)
|
for (int ix = 0; ix <= n; ix++, ii++)
|
||||||
pref[ii] = Point<2> (double(ix)/n, double(iy/n));
|
pref[ii] = Point<2> (double(ix)/n, double(iy)/n);
|
||||||
|
|
||||||
int npt = (n+1)*(n+1);
|
int npt = (n+1)*(n+1);
|
||||||
if (curved)
|
if (curved)
|
||||||
@ -1217,6 +1217,7 @@ namespace netgen
|
|||||||
nvs[ii] = nv;
|
nvs[ii] = nv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (sol && sol->draw_surface)
|
if (sol && sol->draw_surface)
|
||||||
{
|
{
|
||||||
if (usetexture == 2)
|
if (usetexture == 2)
|
||||||
|
@ -286,8 +286,8 @@ catch {
|
|||||||
|
|
||||||
|
|
||||||
if { [catch { load libngsolve.so ngsolve } result ] } {
|
if { [catch { load libngsolve.so ngsolve } result ] } {
|
||||||
# puts "cannot load ngsolve"
|
puts "cannot load ngsolve"
|
||||||
# puts "error: $result"
|
puts "error: $result"
|
||||||
} {
|
} {
|
||||||
catch { source ${ngdir}/ngsolve.tcl }
|
catch { source ${ngdir}/ngsolve.tcl }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user