G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsBulk.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 namespace gismo
17 {
18 
27 template<class T>
28 class gsBulk : public gsGeometry<T>
29 {
30 
31 public:
33  typedef memory::shared_ptr< gsBulk > Ptr;
34 
36  typedef memory::unique_ptr< gsBulk > uPtr;
37 
38  typedef T Scalar_t;
39 public:
40 
43 
45  gsBulk() : gsGeometry<T>() { }
46 
50  gsGeometry<T>(basis, give(coefs))
51  {
52  GISMO_ASSERT( this->m_coefs.size() >= 1,
53  "Coefficient matrix cannot be empty.\n");
54  // GISMO_ASSERT( coefs.cols() >= 2,
55  // "Surface must be embedded in dimension at least two.\n");
56  }
57 
59 
60  GISMO_UPTR_FUNCTION_PURE(gsBulk, clone)
61 
62  short_t domainDim() const { return 4; }
63 
64 }; // class gsBulk
65 
66 } // namespace gismo
67 
68 
69 #ifndef GISMO_BUILD_LIB
70 #include GISMO_HPP_HEADER(gsBulk.hpp)
71 #endif
Abstract base class representing a geometry map.
Definition: gsGeometry.h:92
gsMatrix< T > m_coefs
Coefficient matrix of size coefsSize() x geoDim()
Definition: gsGeometry.h:624
#define short_t
Definition: gsConfig.h:35
gsBulk(const gsBasis< T > &basis, gsMatrix< T > coefs)
Definition: gsBulk.h:49
memory::unique_ptr< gsBulk > uPtr
Unique pointer for gsBulk.
Definition: gsBulk.h:36
gsBulk()
Default empty constructor.
Definition: gsBulk.h:45
S give(S &x)
Definition: gsMemory.h:266
short_t domainDim() const
Dimension d of the parameter domain (overriding gsFunction::domainDim()).
Definition: gsBulk.h:62
#define GISMO_ASSERT(cond, message)
Definition: gsDebug.h:89
Abstract base class representing a 4D bulk.
Definition: gsBulk.h:28
memory::shared_ptr< gsBulk > Ptr
Shared pointer for gsBulk.
Definition: gsBulk.h:33
uPtr clone()
Clone methode. Produceds a deep copy inside a uPtr.
virtual const gsBasis< T > & basis() const =0
Returns a const reference to the basis of the geometry.
A basis represents a family of scalar basis functions defined over a common parameter domain...
Definition: gsBasis.h:78
gsMatrix< T > & coefs()
Definition: gsGeometry.h:340