150{
152
155
156 py::class_<EqSysWrap, std::shared_ptr<EqSysWrap>, boost::noncopyable>(
159
160
161 .def("InitObject", &EquationSystem::InitObject,
162 &EqSysWrap::Default_v_InitObject)
163 .def("DoInitialise", &EquationSystem::DoInitialise,
164 &EqSysWrap::Default_v_DoInitialise)
165 .def("DoSolve", &EquationSystem::DoSolve, &EqSysWrap::Default_v_DoSolve)
166 .def("SetInitialConditions", &EquationSystem::SetInitialConditions,
167 &EqSysWrap::Default_v_SetInitialConditions)
168 .def("EvaluateExactSolution", &EqSysWrap::v_EvaluateExactSolution,
169 &EqSysWrap::Default_v_EvaluateExactSolution)
170 .def("LinfError", &EqSysWrap::v_LinfError,
171 &EqSysWrap::Default_v_LinfError)
172 .def("L2Error", &EqSysWrap::v_L2Error, &EqSysWrap::Default_v_L2Error)
173
174
177
178
179 .def("GetNvariables", &EquationSystem::GetNvariables)
180 .def("GetVariable", &EquationSystem::GetVariable)
181 .def("GetNpoints", &EquationSystem::GetNpoints)
182 .def("SetInitialStep", &EquationSystem::SetInitialStep)
183 .def("ZeroPhysFields", &EquationSystem::ZeroPhysFields)
184
185
186 .def("GetTime", &EquationSystem::GetTime)
187 .def("SetTime", &EquationSystem::SetTime)
188 .add_property("time", &EquationSystem::GetTime,
189 &EquationSystem::SetTime)
190
191
192 .def("GetTimeStep", &EquationSystem::GetTimeStep)
193 .def("SetTimeStep", &EquationSystem::SetTimeStep)
194 .add_property("timestep", &EquationSystem::GetTimeStep,
195 &EquationSystem::SetTimeStep)
196
197
198 .def("GetSteps", &EquationSystem::GetSteps)
199 .def("SetSteps", &EquationSystem::SetSteps)
200 .add_property("steps", &EquationSystem::GetSteps,
201 &EquationSystem::SetSteps)
202
203
205
206
209
210
213
214
216 .staticmethod("Create")
217 .def("Register", [](std::string const &filterName,
218 py::object &obj) { fac(filterName, obj); })
219 .staticmethod("Register");
220
222}
void EquationSystem_Checkpoint_Output(EquationSystemSharedPtr eqSys, int n)
std::shared_ptr< SessionFunction > EquationSystem_GetFunction1(EquationSystemSharedPtr eqSys, std::string name)
void EquationSystem_WriteFld(EquationSystemSharedPtr eqSys, std::string name)
EquationSystemSharedPtr EquationSystem_Create(std::string eqnSysName, LibUtilities::SessionReaderSharedPtr session, SpatialDomains::MeshGraphSharedPtr mesh)
Array< OneD, MultiRegions::ExpListSharedPtr > EquationSystem_GetFields(EquationSystemSharedPtr eqSys)
void EquationSystem_PrintSummary(EquationSystemSharedPtr eqSys)
std::shared_ptr< SessionFunction > EquationSystem_GetFunction2(EquationSystemSharedPtr eqSys, std::string name, MultiRegions::ExpListSharedPtr field)
std::shared_ptr< SessionReader > SessionReaderSharedPtr
EquationSystemFactory & GetEquationSystemFactory()
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
EquationSystem wrapper to handle virtual function calls in EquationSystem and its subclasses.
A helper class that for factory-based classes allows std::shared_ptr<T> as something that boost::pyth...