Skip to content

add necessary binding#253

Merged
acitrain merged 1 commit intomainfrom
bind/freesurface
Mar 5, 2026
Merged

add necessary binding#253
acitrain merged 1 commit intomainfrom
bind/freesurface

Conversation

@Victor-M-Gomes
Copy link
Collaborator

@Victor-M-Gomes Victor-M-Gomes commented Mar 5, 2026

Add python bindings to allow setting free surface. By default there is no free surface, thus this feature is essential to allow realistic simulations.

To use this feature, simply add:

model.set_free_surface_enabled(True) # To enable
model.init_free_surface() # To create

One may also check if a node belongs to the free surface using model.is_free_surface(node num.)

@Victor-M-Gomes
Copy link
Collaborator Author

No free surface ------>

nofs_snapshot_t800_r0

With free surface ------>

fs_snapshot_t800_r0

@acitrain acitrain merged commit 5c64a09 into main Mar 5, 2026
5 checks passed
@ABandet ABandet deleted the bind/freesurface branch March 5, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants