mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Netgen/NGSolve interface - Version 2
This commit is contained in:
parent
7ac50aacf6
commit
54341e5c53
@ -60,6 +60,9 @@ DLL_HEADER int Ng_GetNElements ();
|
||||
template <int DIM>
|
||||
DLL_HEADER Ng_Element Ng_GetElement (int nr);
|
||||
|
||||
template <int DIM>
|
||||
DLL_HEADER int Ng_GetElementIndex (int nr);
|
||||
|
||||
|
||||
/// Curved Elements:
|
||||
/// xi..... DIM_EL local coordinates
|
||||
|
@ -98,7 +98,6 @@ template <class S>
|
||||
class InterpolationSpline
|
||||
{
|
||||
protected:
|
||||
// typedef Vec<3, InterpolationPoint<S> > intpts;
|
||||
// Array < InterpolationPoint<S>[3] > ip;
|
||||
|
||||
class intpts
|
||||
|
@ -154,6 +154,28 @@ template <> DLL_HEADER Ng_Element Ng_GetElement<3> (int nr)
|
||||
}
|
||||
|
||||
|
||||
template <>
|
||||
DLL_HEADER int Ng_GetElementIndex<1> (int nr)
|
||||
{
|
||||
return (*mesh)[SegmentIndex(nr)].si;
|
||||
}
|
||||
|
||||
template <>
|
||||
DLL_HEADER int Ng_GetElementIndex<2> (int nr)
|
||||
{
|
||||
int ind = (*mesh)[SurfaceElementIndex(nr)].GetIndex();
|
||||
return mesh->GetFaceDescriptor(ind).BCProperty();
|
||||
}
|
||||
|
||||
template <>
|
||||
DLL_HEADER int Ng_GetElementIndex<3> (int nr)
|
||||
{
|
||||
return (*mesh)[ElementIndex(nr)].GetIndex();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
template <>
|
||||
DLL_HEADER void Ng_MultiElementTransformation<3,3> (int elnr, int npts,
|
||||
|
Loading…
Reference in New Issue
Block a user