16#ifndef dealii_integrators_maxwell_h
17#define dealii_integrators_maxwell_h
100 result[0] = h1[0][1] - h0[1][1];
101 result[1] = h0[0][1] - h1[0][0];
104 result[0] = h1[0][1] + h2[0][2] - h0[1][1] - h0[2][2];
105 result[1] = h2[1][2] + h0[1][0] - h1[2][2] - h1[0][0];
106 result[2] = h0[2][0] + h1[2][1] - h2[0][0] - h2[1][1];
136 result[0] = normal[1] * (g1[0] - g0[1]);
137 result[1] = -normal[0] * (g1[0] - g0[1]);
141 normal[2] * (g2[1] - g0[2]) + normal[1] * (g1[0] - g0[1]);
143 normal[0] * (g0[2] - g1[0]) + normal[2] * (g2[1] - g1[2]);
145 normal[1] * (g1[0] - g2[1]) + normal[0] * (g0[2] - g2[0]);
165 const double factor = 1.)
182 const unsigned int d_max = (dim == 2) ? 1 : dim;
186 const double dx = factor * fe.
JxW(k);
187 for (
unsigned int i = 0; i < n_dofs; ++i)
188 for (
unsigned int j = 0; j < n_dofs; ++j)
189 for (
unsigned int d = 0;
d < d_max; ++
d)
191 const unsigned int d1 = (
d + 1) % dim;
192 const unsigned int d2 = (
d + 2) % dim;
199 M(i, j) +=
dx * cu * cv;
230 const unsigned int d_max = (dim == 2) ? 1 : dim;
234 const double dx = fe.
JxW(k) * factor;
235 for (
unsigned int i = 0; i < t_dofs; ++i)
236 for (
unsigned int j = 0; j < n_dofs; ++j)
237 for (
unsigned int d = 0;
d < d_max; ++
d)
239 const unsigned int d1 = (
d + 1) % dim;
240 const unsigned int d2 = (
d + 2) % dim;
245 M(i, j) +=
dx * cu * vv;
267 const unsigned int face_no,
287 const unsigned int d_max = (dim == 2) ? 1 : dim;
291 const double dx = factor * fe.
JxW(k);
293 for (
unsigned int i = 0; i < n_dofs; ++i)
294 for (
unsigned int j = 0; j < n_dofs; ++j)
298 for (
unsigned int d = 0;
d < d_max; ++
d)
300 const unsigned int d1 = (
d + 1) % dim;
301 const unsigned int d2 = (
d + 2) % dim;
314 M(i, j) +=
dx * (2. * penalty * u * v - cv * u - cu * v);
348 const unsigned int d_max = (dim == 2) ? 1 : dim;
352 const double dx = factor * fe.
JxW(k);
354 for (
unsigned int i = 0; i < n_dofs; ++i)
355 for (
unsigned int j = 0; j < n_dofs; ++j)
356 for (
unsigned int d = 0;
d < d_max; ++
d)
358 const unsigned int d1 = (
d + 1) % dim;
359 const unsigned int d2 = (
d + 2) % dim;
366 M(i, j) +=
dx * u * v;
392 const double factor1 = 1.,
393 const double factor2 = -1.)
395 const unsigned int n_dofs = fe1.n_dofs_per_cell();
408 const double nu1 = factor1;
409 const double nu2 = (factor2 < 0) ? factor1 : factor2;
410 const double penalty = .5 * pen * (nu1 + nu2);
422 const unsigned int d_max = (dim == 2) ? 1 : dim;
426 const double dx = fe1.
JxW(k);
428 for (
unsigned int i = 0; i < n_dofs; ++i)
429 for (
unsigned int j = 0; j < n_dofs; ++j)
430 for (
unsigned int d = 0;
d < d_max; ++
d)
432 const unsigned int d1 = (
d + 1) % dim;
433 const unsigned int d2 = (
d + 2) % dim;
463 .5 *
dx * (2. * penalty * u1 *
v1 - cv1 * u1 - cu1 *
v1);
465 .5 *
dx * (2. * penalty *
v1 * u2 - cv1 * u2 - cu2 *
v1);
467 .5 *
dx * (2. * penalty * u1 * v2 - cv2 * u1 - cu1 * v2);
469 .5 *
dx * (2. * penalty * u2 * v2 - cv2 * u2 - cu2 * v2);
const unsigned int dofs_per_cell
const unsigned int n_quadrature_points
Tensor< 1, spacedim > shape_grad_component(const unsigned int function_no, const unsigned int point_no, const unsigned int component) const
double shape_value_component(const unsigned int function_no, const unsigned int point_no, const unsigned int component) const
const Tensor< 1, spacedim > & normal_vector(const unsigned int i) const
double JxW(const unsigned int quadrature_point) const
const FiniteElement< dim, spacedim > & get_fe() const
unsigned int n_components() const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
#define AssertDimension(dim1, dim2)
void nitsche_curl_matrix(FullMatrix< double > &M, const FEValuesBase< dim > &fe, const unsigned int face_no, double penalty, double factor=1.)
void curl_curl_matrix(FullMatrix< double > &M, const FEValuesBase< dim > &fe, const double factor=1.)
void tangential_trace_matrix(FullMatrix< double > &M, const FEValuesBase< dim > &fe, double factor=1.)
void curl_matrix(FullMatrix< double > &M, const FEValuesBase< dim > &fe, const FEValuesBase< dim > &fetest, double factor=1.)
Tensor< 1, dim > tangential_curl(const Tensor< 1, dim > &g0, const Tensor< 1, dim > &g1, const Tensor< 1, dim > &g2, const Tensor< 1, dim > &normal)
void ip_curl_matrix(FullMatrix< double > &M11, FullMatrix< double > &M12, FullMatrix< double > &M21, FullMatrix< double > &M22, const FEValuesBase< dim > &fe1, const FEValuesBase< dim > &fe2, const double pen, const double factor1=1., const double factor2=-1.)
Tensor< 1, dim > curl_curl(const Tensor< 2, dim > &h0, const Tensor< 2, dim > &h1, const Tensor< 2, dim > &h2)
Library of integrals over cells and faces.
SymmetricTensor< 2, dim, Number > d(const Tensor< 2, dim, Number > &F, const Tensor< 2, dim, Number > &dF_dt)