PolyFEM
Loading...
Searching...
No Matches
VarFormFactory.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <polyfem/Common.hpp>
4
5#include <memory>
6#include <string>
7
8namespace polyfem::varform
9{
10 class VarForm;
11
13 {
14 public:
15 static bool supports(const std::string &formulation, const json &args);
16 static std::shared_ptr<VarForm> create(const std::string &formulation, const json &args);
17 };
18
22 std::string formulation_from_args(const json &args);
23
27 bool uses_varform_state(json args);
28} // namespace polyfem::varform
static std::shared_ptr< VarForm > create(const std::string &formulation, const json &args)
static bool supports(const std::string &formulation, const json &args)
std::string formulation_from_args(const json &args)
Extracts the formulation type from the given JSON arguments.
bool uses_varform_state(json args)
Checks if the given JSON arguments use a VarForm state.
nlohmann::json json
Definition Common.hpp:9