Skip to content

Commit 408ac14

Browse files
Fix output frequency of Solid
Output frequency of heat.py must match frequency of OpenFOAM Fluid case. Compare writeInterval in controlDict (https://github.com/precice/openfoam-adapter/blob/develop/tutorials/CHT/flow-over-plate/buoyantPimpleFoam-laplacianFoam/Fluid/system/controlDict).
1 parent 61a1cf9 commit 408ac14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • CHT/flow-over-plate/buoyantPimpleFoam-fenics/Solid

CHT/flow-over-plate/buoyantPimpleFoam-fenics/Solid/heat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def fluxes_from_temperature_full_domain(f, v_vec, k):
181181
n += 1
182182

183183
if precice.is_time_window_complete():
184-
# if abs(t % dt_out) < 10e-5: # output if t is a multiple of dt_out
184+
if abs(float(t) % dt_out) < 10e-5: # output if t is a multiple of dt_out
185185
file_out << u_n
186186

187187
# Update dirichlet BC

0 commit comments

Comments
 (0)