PolyFEM
Loading...
Searching...
No Matches
polyfem::varform::internal Namespace Reference

Functions

bool sample_scalar_field (const mesh::Mesh &mesh, const std::vector< basis::ElementBases > &field_bases, const std::vector< basis::ElementBases > &gbases, const io::OutputSample &sample, const Eigen::MatrixXd &dof_values, Eigen::MatrixXd &values, Eigen::MatrixXd *gradients=nullptr)
 
void expand_primary_matrix (const int full_size, const StiffnessMatrix &primary, StiffnessMatrix &expanded)
 
bool write_matrix_market (const json &args, const StiffnessMatrix &stiffness)
 

Function Documentation

◆ expand_primary_matrix()

void polyfem::varform::internal::expand_primary_matrix ( const int  full_size,
const StiffnessMatrix primary,
StiffnessMatrix expanded 
)
inline

Definition at line 79 of file VarFormUtils.hpp.

Referenced by polyfem::varform::BilaplacianVarForm::solve_transient_linear(), polyfem::varform::StokesVarForm::solve_transient_linear(), and polyfem::varform::IncompressibleElasticVarForm::solve_transient_linear().

Here is the caller graph for this function:

◆ sample_scalar_field()

bool polyfem::varform::internal::sample_scalar_field ( const mesh::Mesh mesh,
const std::vector< basis::ElementBases > &  field_bases,
const std::vector< basis::ElementBases > &  gbases,
const io::OutputSample sample,
const Eigen::MatrixXd &  dof_values,
Eigen::MatrixXd &  values,
Eigen::MatrixXd *  gradients = nullptr 
)
inline

Definition at line 20 of file VarFormUtils.hpp.

References polyfem::mesh::Mesh::dimension(), polyfem::io::OutputSample::element_ids, polyfem::io::Evaluator::interpolate_at_local_vals(), polyfem::io::OutputSample::local_points, and polyfem::io::OutputSample::node_ids.

Referenced by polyfem::varform::IncompressibleElasticVarForm::output_fields().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_matrix_market()

bool polyfem::varform::internal::write_matrix_market ( const json args,
const StiffnessMatrix stiffness 
)
inline