32 const bool is_problem_scalar,
33 const std::vector<basis::ElementBases> &bases,
34 const std::vector<basis::ElementBases> &gbases,
35 const Eigen::VectorXi &disc_orders,
37 const Eigen::MatrixXd &fun,
39 Eigen::MatrixXd &result,
40 Eigen::VectorXd &von_mises);
57 const bool is_problem_scalar,
58 const std::vector<basis::ElementBases> &bases,
59 const Eigen::VectorXi &disc_orders,
60 const std::map<int, Eigen::MatrixXd> &polys,
61 const std::map<
int, std::pair<Eigen::MatrixXd, Eigen::MatrixXi>> &polys_3d,
64 const Eigen::MatrixXd &fun,
65 Eigen::MatrixXd &result,
66 const bool use_sampler,
67 const bool boundary_only);
85 const std::vector<basis::ElementBases> &basis,
86 const Eigen::VectorXi &disc_orders,
87 const std::map<int, Eigen::MatrixXd> &polys,
88 const std::map<
int, std::pair<Eigen::MatrixXd, Eigen::MatrixXi>> &polys_3d,
91 const Eigen::MatrixXd &fun,
92 Eigen::MatrixXd &result,
93 const bool use_sampler,
94 const bool boundary_only);
108 const bool is_problem_scalar,
109 const std::vector<basis::ElementBases> &bases,
110 const std::vector<basis::ElementBases> &gbases,
112 const Eigen::MatrixXd &local_pts,
113 const Eigen::MatrixXd &fun,
114 Eigen::MatrixXd &result,
115 Eigen::MatrixXd &result_grad);
130 const int actual_dim,
131 const std::vector<basis::ElementBases> &bases,
132 const std::vector<basis::ElementBases> &gbases,
134 const Eigen::MatrixXd &local_pts,
135 const Eigen::MatrixXd &fun,
136 Eigen::MatrixXd &result,
137 Eigen::MatrixXd &result_grad);
142 const int actual_dim,
144 const Eigen::MatrixXd &fun,
145 Eigen::MatrixXd &result,
146 Eigen::MatrixXd &result_grad);
164 const bool is_problem_scalar,
165 const std::vector<basis::ElementBases> &bases,
166 const std::vector<basis::ElementBases> &gbases,
167 const Eigen::VectorXi &disc_orders,
168 const std::map<int, Eigen::MatrixXd> &polys,
169 const std::map<
int, std::pair<Eigen::MatrixXd, Eigen::MatrixXi>> &polys_3d,
172 const Eigen::MatrixXd &fun,
174 const bool use_sampler,
175 const bool boundary_only);
194 const bool is_problem_scalar,
195 const std::vector<basis::ElementBases> &bases,
196 const std::vector<basis::ElementBases> &gbases,
197 const Eigen::VectorXi &disc_orders,
198 const std::map<int, Eigen::MatrixXd> &polys,
199 const std::map<
int, std::pair<Eigen::MatrixXd, Eigen::MatrixXi>> &polys_3d,
203 const Eigen::MatrixXd &fun,
205 std::vector<assembler::Assembler::NamedMatrix> &result,
206 const bool use_sampler,
207 const bool boundary_only);
229 const bool is_problem_scalar,
231 const std::vector<basis::ElementBases> &bases,
232 const std::vector<basis::ElementBases> &gbases,
233 const Eigen::VectorXi &disc_orders,
234 const std::map<int, Eigen::MatrixXd> &polys,
235 const std::map<
int, std::pair<Eigen::MatrixXd, Eigen::MatrixXi>> &polys_3d,
240 const Eigen::MatrixXd &fun,
241 std::vector<assembler::Assembler::NamedMatrix> &result_scalar,
242 std::vector<assembler::Assembler::NamedMatrix> &result_tensor,
243 const bool use_sampler,
244 const bool boundary_only);
263 const bool is_problem_scalar,
264 const std::vector<basis::ElementBases> &bases,
265 const std::vector<basis::ElementBases> &gbases,
266 const Eigen::VectorXi &disc_orders,
267 const std::map<int, Eigen::MatrixXd> &polys,
268 const std::map<
int, std::pair<Eigen::MatrixXd, Eigen::MatrixXi>> &polys_3d,
272 const Eigen::MatrixXd &fun,
274 std::vector<assembler::Assembler::NamedMatrix> &result,
275 const bool use_sampler,
276 const bool boundary_only);
290 const bool is_problem_scalar,
291 const std::vector<basis::ElementBases> &bases,
292 const std::vector<basis::ElementBases> &gbases,
293 const Eigen::MatrixXd &pts,
294 const Eigen::MatrixXi &
faces,
295 const Eigen::MatrixXd &fun,
296 const bool compute_avg,
297 Eigen::MatrixXd &result);
301 const std::shared_ptr<mesh::MeshNodes> mesh_nodes,
302 const Eigen::MatrixXd &grad);
306 const std::shared_ptr<mesh::MeshNodes> mesh_nodes);
309 const std::vector<basis::ElementBases> &bases,
310 const std::vector<basis::ElementBases> &gbases,
311 const Eigen::MatrixXd &fun,
313 const int actual_dim);
bool check_scalar_value(const mesh::Mesh &mesh, const bool is_problem_scalar, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const Eigen::VectorXi &disc_orders, const std::map< int, Eigen::MatrixXd > &polys, const std::map< int, std::pair< Eigen::MatrixXd, Eigen::MatrixXi > > &polys_3d, const assembler::Assembler &assembler, const utils::RefElementSampler &sampler, const Eigen::MatrixXd &fun, const double t, const bool use_sampler, const bool boundary_only)
checks if mises are not nan
static void interpolate_at_local_vals(const mesh::Mesh &mesh, const bool is_problem_scalar, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const int el_index, const Eigen::MatrixXd &local_pts, const Eigen::MatrixXd &fun, Eigen::MatrixXd &result, Eigen::MatrixXd &result_grad)
interpolate solution and gradient at element (calls interpolate_at_local_vals with sol)
static void compute_stress_at_quadrature_points(const mesh::Mesh &mesh, const bool is_problem_scalar, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const Eigen::VectorXi &disc_orders, const assembler::Assembler &assembler, const Eigen::MatrixXd &fun, const double t, Eigen::MatrixXd &result, Eigen::VectorXd &von_mises)
compute von mises stress at quadrature points for the function fun, also compute the interpolated fun...
static void interpolate_function(const mesh::Mesh &mesh, const bool is_problem_scalar, const std::vector< basis::ElementBases > &bases, const Eigen::VectorXi &disc_orders, const std::map< int, Eigen::MatrixXd > &polys, const std::map< int, std::pair< Eigen::MatrixXd, Eigen::MatrixXi > > &polys_3d, const utils::RefElementSampler &sampler, const int n_points, const Eigen::MatrixXd &fun, Eigen::MatrixXd &result, const bool use_sampler, const bool boundary_only)
interpolate the function fun.
static void average_grad_based_function(const mesh::Mesh &mesh, const bool is_problem_scalar, const int n_bases, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const Eigen::VectorXi &disc_orders, const std::map< int, Eigen::MatrixXd > &polys, const std::map< int, std::pair< Eigen::MatrixXd, Eigen::MatrixXi > > &polys_3d, const assembler::Assembler &assembler, const utils::RefElementSampler &sampler, const double t, const int n_points, const Eigen::MatrixXd &fun, std::vector< assembler::Assembler::NamedMatrix > &result_scalar, std::vector< assembler::Assembler::NamedMatrix > &result_tensor, const bool use_sampler, const bool boundary_only)
computes scalar quantity of funtion (ie von mises for elasticity and norm of velocity for fluid) the ...
static void compute_scalar_value(const mesh::Mesh &mesh, const bool is_problem_scalar, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const Eigen::VectorXi &disc_orders, const std::map< int, Eigen::MatrixXd > &polys, const std::map< int, std::pair< Eigen::MatrixXd, Eigen::MatrixXi > > &polys_3d, const assembler::Assembler &assembler, const utils::RefElementSampler &sampler, const int n_points, const Eigen::MatrixXd &fun, const double t, std::vector< assembler::Assembler::NamedMatrix > &result, const bool use_sampler, const bool boundary_only)
computes scalar quantity of funtion (ie von mises for elasticity and norm of velocity for fluid)
static void compute_tensor_value(const mesh::Mesh &mesh, const bool is_problem_scalar, const std::vector< basis::ElementBases > &bases, const std::vector< basis::ElementBases > &gbases, const Eigen::VectorXi &disc_orders, const std::map< int, Eigen::MatrixXd > &polys, const std::map< int, std::pair< Eigen::MatrixXd, Eigen::MatrixXi > > &polys_3d, const assembler::Assembler &assembler, const utils::RefElementSampler &sampler, const int n_points, const Eigen::MatrixXd &fun, const double t, std::vector< assembler::Assembler::NamedMatrix > &result, const bool use_sampler, const bool boundary_only)
compute tensor quantity (ie stress tensor or velocy)