8#include <spdlog/spdlog.h>
38 void init(
const json &
args,
const bool strict_validation);
41 void set_max_threads(
const int max_threads = std::numeric_limits<int>::max());
62 const std::string &log_file,
63 const spdlog::level::level_enum log_level,
64 const spdlog::level::level_enum file_log_level,
70 void init_logger(std::ostream &os,
const spdlog::level::level_enum log_level);
74 void set_log_level(
const spdlog::level::level_enum log_level);
78 void init_logger(
const std::vector<spdlog::sink_ptr> &sinks,
const spdlog::level::level_enum log_level);
86 void solve(Eigen::MatrixXd &sol);
97 void load_mesh(
bool non_conforming =
false,
98 const std::vector<std::string> &names = std::vector<std::string>(),
99 const std::vector<Eigen::MatrixXi> &cells = std::vector<Eigen::MatrixXi>(),
100 const std::vector<Eigen::MatrixXd> &vertices = std::vector<Eigen::MatrixXd>());
107 void load_mesh(GEO::Mesh &meshin,
const std::function<
int(
const size_t,
const std::vector<int> &,
const RowVectorNd &,
bool)> &boundary_marker,
bool non_conforming =
false,
bool skip_boundary_sideset =
false);
113 void load_mesh(
const Eigen::MatrixXd &
V,
const Eigen::MatrixXi &
F,
bool non_conforming =
false);
VarForm-only simulation state.
void init(const json &args, const bool strict_validation)
initialize the polyfem solver with a json settings
std::shared_ptr< varform::VarForm > variational_formulation
active variational formulation
void load_mesh(bool non_conforming=false, const std::vector< std::string > &names=std::vector< std::string >(), const std::vector< Eigen::MatrixXi > &cells=std::vector< Eigen::MatrixXi >(), const std::vector< Eigen::MatrixXd > &vertices=std::vector< Eigen::MatrixXd >())
loads the mesh from the json arguments
void solve(Eigen::MatrixXd &sol)
solves the problem, call other methods
void set_max_threads(const int max_threads=std::numeric_limits< int >::max())
spdlog::sink_ptr file_sink_
spdlog::sink_ptr console_sink_
logger sink to stdout
json args
main input arguments containing all defaults
void set_log_level(const spdlog::level::level_enum log_level)
change log level
std::function< void(int, int, double, double)> time_callback
Optional UI progress callback.
void init_logger(const std::string &log_file, const spdlog::level::level_enum log_level, const spdlog::level::level_enum file_log_level, const bool is_quiet)
initializing the logger
Eigen::Matrix< double, 1, Eigen::Dynamic, Eigen::RowMajor, 1, 3 > RowVectorNd