20 std::string
name()
const override {
return "NavierStokes"; }
21 std::map<std::string, ParamFunc>
parameters()
const override;
46 bool is_fluid()
const override {
return true; }
double assemble_energy(const bool is_volume, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const AssemblyValsCache &cache, const double t, const double dt, const Eigen::MatrixXd &displacement, const Eigen::MatrixXd &displacement_prev) const override
void assemble_gradient(const bool is_volume, const int n_basis, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const AssemblyValsCache &cache, const double t, const double dt, const Eigen::MatrixXd &displacement, const Eigen::MatrixXd &displacement_prev, Eigen::MatrixXd &rhs) const override
void assemble_hessian(const bool is_volume, const int n_basis, const bool project_to_psd, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const AssemblyValsCache &cache, const double t, const double dt, const Eigen::MatrixXd &displacement, const Eigen::MatrixXd &displacement_prev, utils::MatrixCache &mat_cache, StiffnessMatrix &grad) const override
Eigen::MatrixXd assemble_hessian(const NonLinearAssemblerData &data) const override
Eigen::VectorXd assemble_gradient(const NonLinearAssemblerData &data) const override
void add_multimaterial(const int index, const json ¶ms, const Units &units) override
bool is_tensor() const override
void set_picard(const bool val)
double compute_energy(const NonLinearAssemblerData &data) const override
VectorNd compute_rhs(const AutodiffHessianPt &pt) const override
bool is_fluid() const override
GenericMatParam viscosity_
std::map< std::string, ParamFunc > parameters() const override
Eigen::MatrixXd compute_N(const NonLinearAssemblerData &data) const
std::string name() const override
Eigen::MatrixXd compute_W(const NonLinearAssemblerData &data) const
Eigen::Matrix< AutodiffScalarHessian, Eigen::Dynamic, 1, 0, 3, 1 > AutodiffHessianPt
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, 3, 1 > VectorNd