Beispiel #1
0
def CreateCouplingOperation(coupling_operation_settings, solvers,
                            parent_coupled_solver_process_info):
    """This function creates and returns the Coupling Operation used for CoSimulation"""
    return base_factory.Create(
        coupling_operation_settings,
        [solvers, parent_coupled_solver_process_info],
        "KratosMultiphysics.CoSimulationApplication.coupling_operations")
Beispiel #2
0
def CreateConvergenceAccelerator(convergence_accelerator_settings):
    """This function creates and returns the Convergence Accelerator used for CoSimulation"""
    return base_factory.Create(
        convergence_accelerator_settings, [],
        "KratosMultiphysics.CoSimulationApplication.convergence_accelerators")
def CreatePredictor(predictor_settings, solver_wrapper):
    """This function creates and returns the Predictor used for CoSimulation"""
    return base_factory.Create(predictor_settings, [solver_wrapper], "KratosMultiphysics.CoSimulationApplication.predictors")
def CreateDataTransferOperator(coupling_operation_settings):
    """This function creates and returns the Data Transfer Operator used for CoSimulation"""
    return base_factory.Create(
        coupling_operation_settings, [],
        "KratosMultiphysics.CoSimulationApplication.data_transfer_operators")
Beispiel #5
0
def CreateIO(io_settings, model, solver_name, io_name):
    """This function creates and returns the IO used for CoSimulation"""
    return base_factory.Create(
        io_settings, [model, solver_name],
        "KratosMultiphysics.CoSimulationApplication.solver_wrappers", io_name)
Beispiel #6
0
def CreateConvergenceCriterion(convergence_criterion_settings):
    """This function creates and returns the Convergence Criterion used for CoSimulation"""
    return base_factory.Create(
        convergence_criterion_settings, [],
        "KratosMultiphysics.CoSimulationApplication.convergence_criteria")
Beispiel #7
0
def CreateSolverWrapper(settings, models, solver_name):
    """This function creates and returns the Wrapper for the Solver used for CoSimulation"""
    return base_factory.Create(settings, [models, solver_name],
                               "KratosMultiphysics.CoSimulationApplication")