6 : viscosity_(
"viscosity")
16 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 9, 1>
21 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 9, 1> res(
size() *
size());
27 for (
int k = 0; k < gradi.rows(); ++k)
32 for (
int d = 0; d <
size(); ++d)
33 res(d *
size() + d) = dot;
40 assert(pt.size() ==
size());
41 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 3, 1> res(
size());
43 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 3, 1>
val(
size());
44 for (
int d = 0; d <
size(); ++d)
45 val(d) = pt(d).getValue();
48 for (
int d = 0; d <
size(); ++d)
50 res(d) = nu * pt(d).getHessian().trace();
58 std::map<std::string, ParamFunc> res;
67 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 3, 1>
72 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 3, 1> res(
rows() *
cols());
77 assert(psii.size() == gradphij.rows());
78 assert(gradphij.cols() ==
rows());
80 for (
int k = 0; k < gradphij.rows(); ++k)
82 res -= psii(k) * gradphij.row(k) * data.
da(k);
std::string viscosity() const
std::vector< AssemblyValues > basis_values
void add_multimaterial(const int index, const json ¶ms, const std::string &unit_type)
const ElementAssemblyValues & vals
stores the evaluation for that element
const QuadratureVector & da
contains both the quadrature weight and the change of metric in the integral
const int i
first local order
const int j
second local order
const QuadratureVector & da
contains both the quadrature weight and the change of metric in the integral
const int i
first local order
const int j
second local order
const ElementAssemblyValues & phi_vals
stores the evaluation for that element
const ElementAssemblyValues & psi_vals
stores the evaluation for that element
int rows() const override
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 3, 1 > assemble(const MixedAssemblerData &data) const override
int cols() const override
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 9, 1 > assemble(const LinearAssemblerData &data) const override
local assembly function that defines the bilinear form (LHS) computes and returns a single local stif...
VectorNd compute_rhs(const AutodiffHessianPt &pt) const override
std::map< std::string, ParamFunc > parameters() const override
void add_multimaterial(const int index, const json ¶ms, const Units &units) override
GenericMatParam viscosity_
Eigen::Matrix< AutodiffScalarHessian, Eigen::Dynamic, 1, 0, 3, 1 > AutodiffHessianPt
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 3, 1 > VectorNd
Eigen::Matrix< double, 1, Eigen::Dynamic, Eigen::RowMajor, 1, 3 > RowVectorNd