16 #ifndef dealii__tensor_product_manifold_h 17 #define dealii__tensor_product_manifold_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/subscriptor.h> 21 #include <deal.II/base/point.h> 22 #include <deal.II/grid/manifold.h> 24 DEAL_II_NAMESPACE_OPEN
61 int dim_A,
int spacedim_A,
int chartdim_A,
62 int dim_B,
int spacedim_B,
int chartdim_B>
64 public ChartManifold<dim,spacedim_A+spacedim_B,chartdim_A+chartdim_B>
71 static const unsigned int chartdim = chartdim_A+chartdim_B;
76 static const unsigned int spacedim = spacedim_A+spacedim_B;
124 template <
int dim1,
int dim2>
128 for (
unsigned int d=0; d<dim1; ++d)
130 for (
unsigned int d=0; d<dim2; ++d)
135 template <
int dim1,
int dim2>
139 for (
unsigned int d=0;
d<dim1; ++
d)
141 for (
unsigned int d=0;
d<dim2; ++
d)
146 template <
int dim1,
int dim2>
149 for (
unsigned int d=0;
d<dim1; ++
d)
151 for (
unsigned int d=0;
d<dim2; ++
d)
152 p2[d] = source[dim1+d];
159 int dim_A,
int spacedim_A,
int chartdim_A,
160 int dim_B,
int spacedim_B,
int chartdim_B>
165 :
ChartManifold<dim,spacedim_A+spacedim_B,chartdim_A+chartdim_B> (
167 manifold_A.get_periodicity(),
168 manifold_B.get_periodicity())),
169 manifold_A (&manifold_A),
170 manifold_B (&manifold_B)
174 int dim_A,
int spacedim_A,
int chartdim_A,
175 int dim_B,
int spacedim_B,
int chartdim_B>
182 internal::TensorProductManifold::split_point(space_point, space_point_A, space_point_B);
187 return internal::TensorProductManifold::concat(result_A, result_B);
191 int dim_A,
int spacedim_A,
int chartdim_A,
192 int dim_B,
int spacedim_B,
int chartdim_B>
199 internal::TensorProductManifold::split_point(chart_point, chart_point_A, chart_point_B);
204 return internal::TensorProductManifold::concat(result_A, result_B);
208 int dim_A,
int spacedim_A,
int chartdim_A,
209 int dim_B,
int spacedim_B,
int chartdim_B>
219 internal::TensorProductManifold::split_point(chart_point, chart_point_A, chart_point_B);
222 = manifold_A->push_forward_gradient(chart_point_A);
224 = manifold_B->push_forward_gradient(chart_point_B);
228 for (
unsigned int i = 0; i<chartdim_A; ++i)
229 for (
unsigned int j = 0; j<spacedim_A; ++j)
230 result[j][i] = result_A[j][i];
231 for (
unsigned int i = 0; i<chartdim_B; ++i)
232 for (
unsigned int j = 0; j<spacedim_B; ++j)
233 result[j+spacedim_A][i+chartdim_A] = result_B[j][i];
241 DEAL_II_NAMESPACE_CLOSE
static const unsigned int chartdim
virtual Point< chartdim > pull_back(const Point< spacedim > &space_point) const
Tensor product manifold of two ChartManifolds.
virtual DerivativeForm< 1, chartdim, spacedim > push_forward_gradient(const Point< chartdim > &chart_point) const
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)
virtual Point< spacedim > push_forward(const Point< chartdim > &chart_point) const
static const unsigned int spacedim
TensorProductManifold(const ChartManifold< dim_A, spacedim_A, chartdim_A > &manifold_A, const ChartManifold< dim_B, spacedim_B, chartdim_B > &manifold_B)