Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing structure model part from FSI solvers constructors #2211

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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