Skip to content

Commit

Permalink
Update to new tutorial structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminRodenberg committed Feb 12, 2024
1 parent d544a28 commit 459ab90
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion partitioned-heat-conduction-complex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ See `partitioned-heat-conduction`, only `fenics` is provided as a solver.

## Running the simulation

See `partitioned-heat-conduction`. The additional featured mentioned above can be activated via command line arguments. Please run `python3 fenics/heat.py --help` for a full list of provided arguments.
See `partitioned-heat-conduction`. The additional featured mentioned above can be activated via command line arguments. Please run `python3 solver-fenics/heat.py --help` for a full list of provided arguments.
4 changes: 4 additions & 0 deletions partitioned-heat-conduction-complex/dirichlet-fenics/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e -u

python3 ../solver-fenics/heat.py -d -i complex
16 changes: 0 additions & 16 deletions partitioned-heat-conduction-complex/fenics/run.sh

This file was deleted.

6 changes: 6 additions & 0 deletions partitioned-heat-conduction-complex/neumann-fenics/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -e -u

. ../../tools/cleaning-tools.sh

clean_fenics .
4 changes: 4 additions & 0 deletions partitioned-heat-conduction-complex/neumann-fenics/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
set -e -u

python3 ../solver-fenics/heat.py -n -i complex
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ def determine_gradient(V_g, u, flux):
precice, precice_dt, initial_data = None, 0.0, None

# Initialize the adapter according to the specific participant
precice = Adapter(adapter_config_filename="precice-adapter-config.json")

if problem is ProblemType.DIRICHLET:
precice = Adapter(adapter_config_filename="precice-adapter-config-D.json")
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.initialize(coupling_boundary, read_function_space=V_g, write_object=u_D_function)

boundary_marker = False
Expand Down

0 comments on commit 459ab90

Please sign in to comment.