Skip to content

Commit

Permalink
Merge pull request #2211 from KratosMultiphysics/hotfix-fsi-Python-so…
Browse files Browse the repository at this point in the history
…lvers-with-structure-model

Removing structure model part from FSI solvers constructors
  • Loading branch information
rubenzorrilla authored May 30, 2018
2 parents 8d8c4b8 + 2b21fc8 commit a2b6d53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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...")

Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.")


Expand Down

0 comments on commit a2b6d53

Please sign in to comment.