Skip to content

Commit a924ea6

Browse files
Rename t->traction to make place for time variable
1 parent ff63941 commit a924ea6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

turek-hron-fsi3/fluid-nutils/fluid.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@ def main(domain: Domain = Domain(), fluid: Fluid = Fluid(), dynamic: Dynamic = D
217217
sys_up = System(res, trial='u,p', test='utest,ptest')
218218

219219
# t = -σ·n => ∀q: ∮ -q·t = ∮ q·σ·n = ∫ div(q·σ) = ∫ (∇q:σ + q·div σ) = ∫ (∇q:σ + ρf q·DuDt)
220-
ns.t = topo.field('t', btype='std', degree=2, shape=[
221-
2]) * (fluid.viscosity * fluid.velocity / domain.cylinder_radius)
220+
ns.traction = topo.field('traction', btype='std', degree=2, shape=[
221+
2]) * (fluid.viscosity * fluid.velocity / domain.cylinder_radius)
222222
res += topo.boundary['cylinder,structure'].integral(
223-
'utest_i t_i dS' @ ns, degree=4)
224-
sys_t = System(res, trial='t', test='utest')
223+
'utest_i traction_i dS' @ ns, degree=4)
224+
sys_t = System(res, trial='traction', test='utest')
225225
sqr = topo.boundary['cylinder,structure'].integral(
226-
't_i t_i' @ ns, degree=4) / 'Pa2'
227-
cons['t'] = numpy.isnan(
228-
System(sqr, trial='t').solve_constraints(droptol=1e-10)['t'])
229-
F = topo.boundary['cylinder,structure'].integral('t_i dS' @ ns, degree=4)
226+
'traction_i traction_i' @ ns, degree=4) / 'Pa2'
227+
cons['traction'] = numpy.isnan(
228+
System(sqr, trial='traction').solve_constraints(droptol=1e-10)['traction'])
229+
F = topo.boundary['cylinder,structure'].integral('traction_i dS' @ ns, degree=4)
230230

231231
# mesh continuation with jacobian based stiffness
232232
sqr = topo.integral('C_kk - 2 log(J)' @ ns, degree=4)
@@ -268,7 +268,7 @@ def main(domain: Domain = Domain(), fluid: Fluid = Fluid(), dynamic: Dynamic = D
268268
tol=1e-10) # project traction
269269

270270
participant.write_data(
271-
w_name, 'Stress', w_ids, w_sample.eval(ns.t, args) / precice_stress)
271+
w_name, 'Stress', w_ids, w_sample.eval(ns.traction, args) / precice_stress)
272272
participant.advance(timestep)
273273

274274
if participant.requires_reading_checkpoint():

0 commit comments

Comments
 (0)