Example #1
0
 def _CreateSolver(self):
     """Create the solver
     """
     return solver_wrapper.CreateSolverByParameters(
         self.model, self.project_parameters["solver_settings"],
         self.project_parameters["problem_data"]
         ["parallel_type"].GetString())
    def __init__(self, model, custom_settings):

        self._validate_settings_in_baseclass = True

        super(CoupledPfemFluidThermalSolver, self).__init__(model, custom_settings)

        # Get domain size
        self.domain_size = self.settings["domain_size"].GetInt()

        from KratosMultiphysics.PfemFluidDynamicsApplication import python_solvers_wrapper_pfem_fluid
        self.fluid_solver = python_solvers_wrapper_pfem_fluid.CreateSolverByParameters(self.model,self.settings["fluid_solver_settings"],"OpenMP")

        from KratosMultiphysics.ConvectionDiffusionApplication import python_solvers_wrapper_convection_diffusion
        self.thermal_solver = python_solvers_wrapper_convection_diffusion.CreateSolverByParameters(self.model,self.settings["thermal_solver_settings"],"OpenMP")