10 for (
int q = 0; q < data.
da.size(); ++q)
17 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 9, 1> res(
size() *
size(), 1);
19 for (
int i = 0; i <
size(); ++i)
20 res(i *
size() + i) = tmp;
28 Eigen::Matrix<double, Eigen::Dynamic, 1, 0, 3, 1> result;
42 std::map<std::string, ParamFunc> res;
std::string density() const
virtual void add_multimaterial(const int index, const json ¶ms, const std::string &density_unit)
std::vector< AssemblyValues > basis_values
quadrature::Quadrature quadrature
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
void add_multimaterial(const int index, const json ¶ms, const Units &units) override
inialize material parameter
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 3, 1 > compute_rhs(const AutodiffHessianPt &pt) const override
uses autodiff to compute the rhs for a fabricated solution in this case it just return pt....
virtual std::map< std::string, ParamFunc > parameters() const override
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 9, 1 > assemble(const LinearAssemblerData &data) const override
computes and returns local stiffness matrix (1x1) for bases i,j (where i,j is passed in through data)...
Eigen::Matrix< AutodiffScalarHessian, Eigen::Dynamic, 1, 0, 3, 1 > AutodiffHessianPt
Eigen::Matrix< double, 1, Eigen::Dynamic, Eigen::RowMajor, 1, 3 > RowVectorNd