Skip to content

Commit

Permalink
Adapt svZeroDSolver to 46e08d6
Browse files Browse the repository at this point in the history
  • Loading branch information
mrp089 committed Jan 18, 2024
1 parent bb559fc commit 1107bd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Python/site-packages/sv_rom_simulation/io_0d.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,13 @@ def write_0d_solver_file(mesh, params, model):
for i, j_branches in enumerate(mesh.seg_connectivity):
# general junction properties
junction = {'junction_name': 'J' + str(i),
'junction_type': 'internal_junction',
'junction_type': 'NORMAL_JUNCTION',
'inlet_vessels': [int(j_branches[0])],
'outlet_vessels': []}
for j in j_branches[1:]:
junction['outlet_vessels'] += [int(j)]
# branching vessels
if len(j_branches) > 2:
junction['junction_type'] = 'NORMAL_JUNCTION'
junction['tangents'] = mesh.junctions[i]['tangents']
for n in ['areas', 'lengths']:
junction[n] = [float(v) for v in mesh.junctions[i][n]]
Expand Down

0 comments on commit 1107bd1

Please sign in to comment.