14 std::string
name()
const override {
return "spatial_integral"; }
39 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
40 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
43 std::string
name()
const override {
return "elastic_energy"; }
58 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
59 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
61 if (args[
"power"] > 0)
65 std::string
name()
const override {
return "stress_norm"; }
83 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
84 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
87 std::string
name()
const override {
return "compliance"; }
102 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
103 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
124 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
125 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
127 set_dim(args[
"dim"].get<int>());
146 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
147 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
161 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
162 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
164 dimensions_ = args[
"dimensions"].get<std::vector<int>>();
167 std::string
name()
const override {
return "stress"; }
184 auto tmp_ids = args[
"volume_selection"].get<std::vector<int>>();
185 ids_ = std::set(tmp_ids.begin(), tmp_ids.end());
main class that contains the polyfem solver and all its state
A collection of VariableToSimulation.