Skip to content
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
2 changes: 1 addition & 1 deletion CHT/flow-over-plate/buoyantPimpleFoam-fenics/Solid/heat.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def determine_heat_flux(V_g, u, k, flux):
# Adapter definition and initialization
precice = Adapter(adapter_config_filename="precice-adapter-config.json")

precice_dt = precice.initialize(coupling_boundary, mesh, V, write_function=f_N_function)
precice_dt = precice.initialize(coupling_boundary, read_function_space=V, write_object=f_N_function)

# Create a FEniCS Expression to define and control the coupling boundary values
coupling_expression = precice.create_coupling_expression()
Expand Down
4 changes: 3 additions & 1 deletion FSI/cylinderFlap/OpenFOAM-FEniCS/Solid/cyl-flap.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def remaining_boundary(x, on_boundary):
force_boundary = AutoSubDomain(remaining_boundary)

# Initialize the coupling interface
precice_dt = precice.initialize(coupling_boundary, mesh, V, dim, fixed_boundary=clamped_boundary_domain)
# Function space V is passed twice as both read and write functions are defined using the same space
precice_dt = precice.initialize(coupling_boundary, read_function_space=V, write_object=V,
fixed_boundary=clamped_boundary_domain)

fenics_dt = precice_dt # if fenics_dt == precice_dt, no subcycling is applied
# fenics_dt = 0.02 # if fenics_dt < precice_dt, subcycling is applied
Expand Down
4 changes: 3 additions & 1 deletion FSI/flap_perp/OpenFOAM-FEniCS/Solid/perp-flap.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def neumann_boundary(x, on_boundary):
force_boundary = AutoSubDomain(neumann_boundary)

# Initialize the coupling interface
precice_dt = precice.initialize(coupling_boundary, mesh, V, dim, fixed_boundary=clamped_boundary_domain)
# Function space V is passed twice as both read and write functions are defined using the same space
precice_dt = precice.initialize(coupling_boundary, read_function_space=V, write_object=V,
fixed_boundary=clamped_boundary_domain)

fenics_dt = precice_dt # if fenics_dt == precice_dt, no subcycling is applied
# fenics_dt = 0.02 # if fenics_dt < precice_dt, subcycling is applied
Expand Down
4 changes: 2 additions & 2 deletions HT/partitioned-heat/fenics-fenics/heat.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ def determine_gradient(V_g, u, flux):
# Initialize the adapter according to the specific participant
if problem is ProblemType.DIRICHLET:
precice = Adapter(adapter_config_filename="precice-adapter-config-D.json")
precice_dt = precice.initialize(coupling_boundary, mesh, V, write_function=f_N_function)
precice_dt = precice.initialize(coupling_boundary, read_function_space=V, write_object=f_N_function)
elif problem is ProblemType.NEUMANN:
precice = Adapter(adapter_config_filename="precice-adapter-config-N.json")
precice_dt = precice.initialize(coupling_boundary, mesh, V_g, write_function=u_D_function)
precice_dt = precice.initialize(coupling_boundary, read_function_space=V_g, write_object=u_D_function)

boundary_marker = False

Expand Down