Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
293b9a0
creating tsunami directory with amusifier
elkogerville Feb 9, 2026
3000cae
defined Tsunami new_particle in interface.py
elkogerville Feb 9, 2026
3f326ec
defining new_particle in Tsunami interface.cc
elkogerville Feb 9, 2026
9f36e14
tsunami interface.cc cleanup
elkogerville Feb 10, 2026
30fa3b2
rm unused params in Tsunami interface.py
elkogerville Feb 12, 2026
0ca63f1
defined a tsunami.new_particle and .commit_particles in interface.cc …
elkogerville Feb 13, 2026
c0786fd
cleaned up Tsunami new_particle in interface.cc
elkogerville Feb 16, 2026
68383e2
def commit_particles Tsunami interface.cc, which copies particles fro…
elkogerville Feb 16, 2026
44a43e8
defined new_particle in Tsunami interface.py
elkogerville Feb 16, 2026
8ef1287
Tsunami interface.cc get/set_state
elkogerville Feb 17, 2026
7f652e7
Tsunami interface.cc def index_within_bounds to check that an index_o…
elkogerville Feb 17, 2026
ae8694f
refactored Tsunami interface.cc fns to use index_in_bounds
elkogerville Feb 17, 2026
71a3697
def get/set_mass and get/set_radius Tsunami interface.cc
elkogerville Feb 17, 2026
ed7495b
Tsunami interface.cc def get/set_position
elkogerville Feb 17, 2026
30ecf29
Tsunami interface.cc def get/set_velocity and def evolve_model
elkogerville Feb 17, 2026
77e56a8
added try catch to Tsunami evolve_system interface.cc
elkogerville Feb 17, 2026
5df8831
def get/set_state, mass, and radius Tsunami interface.py
elkogerville Feb 20, 2026
d546309
rm get/set mass, radius Tsunami interface.py since they are inherited…
elkogerville Feb 20, 2026
a9e132d
Tsunami interface.cc def get_total_mass, get_center_of_mass_position,…
elkogerville Feb 20, 2026
5f19a00
def get_index_of_particle and _of_next_particle tsunami interface.cc
elkogerville Feb 20, 2026
7f9b956
fixed tsunami interface.cc bug where Npart was icorrectly labeled as …
elkogerville Feb 20, 2026
38bc819
def get_acceleration, def Tsunami configuration params, Tsunami inter…
elkogerville Feb 24, 2026
b4cd297
Tsunami setters and getters for Tsunami.Conf
elkogerville Feb 24, 2026
5a258ec
Tsunami config.mk.in
elkogerville Apr 1, 2026
7b48003
Tsunami configure.ac
elkogerville Apr 1, 2026
87aa0d6
Tsunami amuse_deps file
elkogerville Apr 1, 2026
1c0f08d
cleanup amuse tsunami packages folder
elkogerville Apr 1, 2026
8b82ca4
cleaned up tsunami interface.py
elkogerville Apr 1, 2026
5e1ca02
def __init__.py and interface.py for tsunami in amuse/community
elkogerville Apr 1, 2026
e281a81
fixed makefile and interface.py typo amuse_tsunami
elkogerville Apr 1, 2026
4786aac
tsunami cleanup
elkogerville Apr 7, 2026
4653812
fixed amuse_tsunami Makefile
elkogerville Apr 9, 2026
60cda55
fixed Tsunami interface to compile the python api instead
elkogerville Apr 20, 2026
1340cc1
class TsunamiImplementation to replace interface.cc
elkogerville Apr 20, 2026
8a0ffaf
fixed incorrect framework version pin in tsunami toml
elkogerville Apr 20, 2026
9e46aa9
refactored TsunamiImplementation to have a copy of the internal parti…
elkogerville Apr 20, 2026
1bd66e2
tsunamiImplementation def commit_parameters
elkogerville Apr 20, 2026
cf0d869
def commit_particles, recommit_paramters and recommit_particles in Ts…
elkogerville Apr 20, 2026
2ccd395
refactored TsunamiImplementation new_particle
elkogerville Apr 20, 2026
18d9471
def get/set_position TsunamiImplementation
elkogerville Apr 20, 2026
539a2f1
def set_units, get/set_mscale, get/set_lscale, get_tscale, get_vscale…
elkogerville Apr 20, 2026
73b2d61
get_time, get_potential_energy, get_kinetic_energy, get_total_energy …
elkogerville Apr 20, 2026
681572f
def _clear_temporary_particle_buffers TsunamiImplementation
elkogerville Apr 20, 2026
ef873e3
made installing tsunami python api a build dependency in makefile
elkogerville Apr 22, 2026
5ae376d
mv tsunami import in interface.py
elkogerville Apr 22, 2026
4eebeee
tsunami tests cleanup
elkogerville Apr 22, 2026
726d273
fixed tsunami pyproject.toml
elkogerville Apr 22, 2026
866c8b5
tupan tests
elkogerville Apr 22, 2026
9d1358b
rm tsunami shared folder bc missing simlink
elkogerville Apr 22, 2026
ce89ca1
fixed amuse_tsunami/support/shared not symlinking to amuse/support/sh…
elkogerville Apr 22, 2026
482045c
cleaned up Tsunami Makefile
elkogerville Jun 3, 2026
9c71767
tsunami configuration files
elkogerville Jun 3, 2026
2a7315e
fixed makefile
elkogerville Jun 3, 2026
edf1d2d
rm stype from tsunami since its an unused param
elkogerville Jun 3, 2026
2b23984
def evolve_model and rm more stype
elkogerville Jun 3, 2026
52eacf9
fixed TsunamiImplementation to use .value in getters
elkogerville Jun 3, 2026
d4789a1
fixed TsunamiInterface definition
elkogerville Jun 3, 2026
698d034
fixed Tsunami user interface
elkogerville Jun 3, 2026
2d32cbc
def test_tsunami
elkogerville Jun 3, 2026
ff9cb89
def evolve_model, evolve_model_dtmax, rearranged particle attributes …
elkogerville Jun 4, 2026
65828af
type annotations get/set state
elkogerville Jun 4, 2026
dcd3c5d
def synchronize_model and _validate_particle_index
elkogerville Jun 4, 2026
e481f80
cleaned up TsunamiInterface
elkogerville Jun 4, 2026
d6b621c
cleaned up Tsunami
elkogerville Jun 4, 2026
6b45492
tsunami type annotations and docs
elkogerville Jun 4, 2026
2e241ac
added regularization and pn parameters to tsunami
elkogerville Jun 4, 2026
db71cc7
better pn descriptions in docs
elkogerville Jun 4, 2026
57a3f64
added _id_list and _ids to init of TsunamiImplementation
elkogerville Jun 8, 2026
1ff5df9
added id_list logic to commit_particles
elkogerville Jun 8, 2026
2c3cafb
added sync_masses and radii to synchronize_state
elkogerville Jun 8, 2026
ce2713e
refactored new_particle id assignment and def delete_particle
elkogerville Jun 8, 2026
68e7f96
def _get_particle_index_by_id, def _get_new_id, def get_number_of_par…
elkogerville Jun 8, 2026
4f6e632
tsunami tests
elkogerville Jun 8, 2026
6968df1
def test_adding_and_deleting_particles, def test_tsunami_pythagorean_…
elkogerville Jun 8, 2026
17e6fdc
updated TsunamiImplementation docs
elkogerville Jun 9, 2026
ca7db86
def get/set_spin tsunami
elkogerville Jun 9, 2026
fb7613c
def get/set_equilibrium_tides
elkogerville Jun 9, 2026
b535115
added more properties to tsunami
elkogerville Jun 9, 2026
f747ec0
cleaned up id logic in tsunamiImplementation
elkogerville Jun 9, 2026
e82aa4b
cleaned up interface
elkogerville Jun 9, 2026
1fbe3a0
def get/set_dynamical_tides
elkogerville Jun 9, 2026
87087a8
refactored commit_particles and delete_particle in tsunami -> now onl…
elkogerville Jun 12, 2026
a5f8fbc
def get/set_mass and velocity
elkogerville Jun 12, 2026
5bddaee
rename tsunami parameters
elkogerville Jun 12, 2026
8d4e725
add speed of light property tsunami
elkogerville Jun 12, 2026
59eb478
TsunamiInterface tests
elkogerville Jun 15, 2026
125d543
TestTsunami validation methods
elkogerville Jun 15, 2026
fb6ff5a
fixed test_tsunami_pythagoran_triangle
elkogerville Jun 15, 2026
741637d
def test_delete_particle_and_restart and test_tsunami_does_not_rescal…
elkogerville Jun 15, 2026
d22ce03
fixed delete_particle method and commit_particles
elkogerville Jun 15, 2026
2c14175
fix imports in Tsunami
elkogerville Jul 7, 2026
f313311
rename packages/amuse-tsunami/tsunami -> packages/amuse-tsunami/amuse…
elkogerville Jul 7, 2026
406e6cf
update tsunami imports
elkogerville Jul 8, 2026
3ce7f62
def get_radius
elkogerville Jul 8, 2026
81210d0
rm set_spin, cleanup getters
elkogerville Jul 8, 2026
c0f5a1c
clean up remote function getters and setters
elkogerville Jul 8, 2026
a4de752
added converter logic to convert physical units to nbody in Tsunami _…
elkogerville Jul 8, 2026
025f8fb
added more properties of the code
elkogerville Jul 8, 2026
0bd7538
cleaned up methods in Tsunami
elkogerville Jul 8, 2026
8004c4a
cleaned up tsunami interface.py
elkogerville Jul 8, 2026
a52b042
clean up tsunami interface.py
elkogerville Jul 8, 2026
b87ab58
rm use_physical_units remote fn
elkogerville Jul 8, 2026
5cb679c
cleaned up test_setters_and_getters
elkogerville Jul 8, 2026
2676555
cleaned up test_setters_and_getters
elkogerville Jul 8, 2026
94f7234
cleanup Tsunami tests
elkogerville Jul 8, 2026
7c23eb2
added earth-moon ics from jpl ephemeris
elkogerville Jul 8, 2026
4853408
def test_earth_moon_system
elkogerville Jul 8, 2026
d2dfd90
rename test_earth_moon_system to test_earth_moon_system_physical_units
elkogerville Jul 8, 2026
26ca406
def test_converter and clean up test_earth_moon_system_physical_units
elkogerville Jul 8, 2026
ff52d80
def initialize_tidal_parameters tsunami interface.py
elkogerville Jul 9, 2026
0abf956
rm whitespace
elkogerville Aug 12, 2026
c8a37e2
add spin as a global vector Particles attribute
elkogerville Sep 10, 2026
1775faf
tighten swig version dependency for tsunami
elkogerville Sep 10, 2026
df4c2ab
rm tsunami.commit_parameters call from commit_parameters since it was…
elkogerville Sep 10, 2026
f92c28d
fix issue where dynamical tides were activating equilibrium tides ins…
elkogerville Sep 10, 2026
e6697c7
cleanup interface tsunami
elkogerville Sep 10, 2026
f9e0dbc
add spin in particle set
elkogerville Sep 10, 2026
7e8a627
tsunami docs
elkogerville Sep 10, 2026
38768b0
cleanup tsunami tests
elkogerville Sep 10, 2026
2d126ff
create test_tides
elkogerville Sep 10, 2026
e062d6a
clean up Tsunami interface of typos, homogenize docstrings
elkogerville Sep 11, 2026
af163a5
refactor tsunami.commit_particles to use more robust set logic for ch…
elkogerville Sep 11, 2026
13f1cb1
add omitted logic for deleting stypes in delete_particle
elkogerville Sep 11, 2026
0e86aa6
docstring for initialize_tidal_parameters
elkogerville Sep 11, 2026
2cb4ab0
cleanup tsunami interfaces
elkogerville Sep 11, 2026
fdee37f
clean up tsunami tests
elkogerville Sep 11, 2026
37fb024
add tsunami README detailing installation notes
elkogerville Sep 11, 2026
f000580
Merge branch 'main' into amuse_tsunami
elkogerville Sep 11, 2026
1e45a7d
rm unused tsunami interface.cc:
elkogerville Sep 11, 2026
77d3624
Update test_tupan.py
elkogerville Sep 11, 2026
2660609
Update test_tupan.py
elkogerville Sep 11, 2026
12e2f10
Update test_tupan.py
elkogerville Sep 11, 2026
158e11f
fixed whitespace issues in tsunami tests
elkogerville Sep 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/amuse/community/tsunami/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from amuse.community.tsunami.interface import Tsunami
4 changes: 4 additions & 0 deletions src/amuse/community/tsunami/interface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from amuse.support.import_helper import load_code

TsunamiInterface = load_code('tsunami', 'TsunamiInterface')
Tsunami = load_code('tsunami', 'Tsunami')
53 changes: 53 additions & 0 deletions src/amuse_tsunami/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
ifneq (,$(filter-out clean distclean, $(MAKECMDGOALS)))
include support/config.mk
endif

# Detecting dependencies
support/config.mk:
cd support && ./configure

src/tsunami-master: | tsunami-master.tar.gz
tar xf $<
mv tsunami-master src/


.PHONY: install_tsunami
install_tsunami: | src/tsunami-master
ifneq ($(CONDA_PREFIX),)
conda install --yes --channel conda-forge --override-channels numpy "swig=4.2.1" scikit-build-core
endif
cd src/tsunami-master/ && pip install . -Ccmake.define.spin=ON


tsunami_worker: interface.py install_tsunami
PYTHONPATH=. amusifier --type=py --mode=mpi -x interface TsunamiInterface TsunamiImplementation -o $@

# Which packages contain which workers?
amuse-tsunami_contains: tsunami_worker


# Building and installing packages
develop-%: %_contains
support/shared/uninstall.sh $*
python -m pip install -e packages/$*

install-%: %_contains
support/shared/uninstall.sh $*
python -m pip install packages/$*

package-%: %_contains
python3 -m pip install -vv --no-cache-dir --no-deps --no-build-isolation --prefix ${PREFIX} packages/$*

test-%:
cd packages/$* && pytest


# Cleaning up
.PHONY: clean
clean:
rm -rf *worker*

.PHONY: distclean
distclean: clean
rm -f support/config.mk support/config.log support/config.status
rm -rf support/autom4te.cache
9 changes: 9 additions & 0 deletions src/amuse_tsunami/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Tsunami is a private code and therefore cannot be shipped with AMUSE.

To use Tsunami, contact Dr. Alessandro Alberto Trani for access to the
gitlab repository.

To compile the interface, download the the `tsunami-master.tar.gz` file
from the gitlab repository. Please ensure that the file is named exactly
as above. Place the file inside `amuse/src/amuse_tsunami/` (where the tsunami
interface lives), then compile Tsunami like any other AMUSE community code.
1 change: 1 addition & 0 deletions src/amuse_tsunami/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from amuse_tsunami.interface import Tsunami
Loading
Loading