From 2b21fc89176523aa87fe22e000f2975956f5dccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Zorrilla?= Date: Tue, 29 May 2018 12:29:31 +0200 Subject: [PATCH] Removing structure model part from FSI solvers constructors --- .../python_scripts/partitioned_fsi_base_solver.py | 7 +++---- .../partitioned_fsi_dirichlet_neumann_solver.py | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/applications/FSIapplication/python_scripts/partitioned_fsi_base_solver.py b/applications/FSIapplication/python_scripts/partitioned_fsi_base_solver.py index fdf8e3e0960e..7a5f94910cc3 100755 --- a/applications/FSIapplication/python_scripts/partitioned_fsi_base_solver.py +++ b/applications/FSIapplication/python_scripts/partitioned_fsi_base_solver.py @@ -22,11 +22,11 @@ import KratosMultiphysics.FluidDynamicsApplication as KratosFluid import KratosMultiphysics.StructuralMechanicsApplication as KratosStructural -def CreateSolver(structure_main_model_part, fluid_main_model_part, project_parameters): - return PartitionedFSIBaseSolver(structure_main_model_part, fluid_main_model_part, project_parameters) +def CreateSolver(fluid_main_model_part, project_parameters): + return PartitionedFSIBaseSolver(fluid_main_model_part, project_parameters) class PartitionedFSIBaseSolver: - def __init__(self, structure_main_model_part, fluid_main_model_part, project_parameters): + def __init__(self, fluid_main_model_part, project_parameters): print("** Calling the partitioned FSI base solver constructor...") @@ -41,7 +41,6 @@ def __init__(self, structure_main_model_part, fluid_main_model_part, project_par if end_time_structure != end_time_fluid: raise("ERROR: Different final time among subdomains!") - self.structure_main_model_part = structure_main_model_part self.fluid_main_model_part = fluid_main_model_part # Time stepping checks (no sub-stepping between subdomains has been implemented yed) diff --git a/applications/FSIapplication/python_scripts/partitioned_fsi_dirichlet_neumann_solver.py b/applications/FSIapplication/python_scripts/partitioned_fsi_dirichlet_neumann_solver.py index e7045dffcdcd..ef5277260d7c 100755 --- a/applications/FSIapplication/python_scripts/partitioned_fsi_dirichlet_neumann_solver.py +++ b/applications/FSIapplication/python_scripts/partitioned_fsi_dirichlet_neumann_solver.py @@ -26,14 +26,14 @@ # Import base class file import partitioned_fsi_base_solver -def CreateSolver(structure_main_model_part, fluid_main_model_part, project_parameters): - return PartitionedFSIDirichletNeumannSolver(structure_main_model_part, fluid_main_model_part, project_parameters) +def CreateSolver(fluid_main_model_part, project_parameters): + return PartitionedFSIDirichletNeumannSolver(fluid_main_model_part, project_parameters) class PartitionedFSIDirichletNeumannSolver(partitioned_fsi_base_solver.PartitionedFSIBaseSolver): - def __init__(self, structure_main_model_part, fluid_main_model_part, project_parameters): + def __init__(self, fluid_main_model_part, project_parameters): print("*** Partitioned Dirichlet-Neumann FSI solver construction starts...") - super(PartitionedFSIDirichletNeumannSolver, self).__init__(structure_main_model_part, fluid_main_model_part, project_parameters) + super(PartitionedFSIDirichletNeumannSolver, self).__init__(fluid_main_model_part, project_parameters) print("*** Partitioned Dirichlet-Neumann FSI solver construction finished.")