Skip to content

Commit 13f9e79

Browse files
committed
Relocate added_mass to chrono layer and remove stale coupling folder
1 parent 13c3f40 commit 13f9e79

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,6 @@ set(HYDROCHRONO_SOURCES
344344
src/hydro/config/config_loader.cpp
345345
src/hydro/config/setup_from_yaml.cpp
346346
src/hydro/config/yaml_discovery.cpp
347-
# Coupling module (consolidated under src/hydro/coupling/)
348-
src/hydro/coupling/added_mass.cpp
349347
# Core facade and utilities
350348
src/hydro/hydro_forces.cpp
351349
src/hydro/utils/helper.cpp
@@ -360,6 +358,7 @@ set(HYDROCHRONO_SOURCES
360358
# Chrono coupling layer (bridges Chrono physics with Chrono-free core)
361359
src/hydro/chrono/chrono_state_utils.cpp
362360
src/hydro/chrono/chrono_hydro_coupler.cpp
361+
src/hydro/chrono/added_mass.cpp
363362
src/hydro/force_components/hydrostatics_component.cpp
364363
src/hydro/force_components/radiation_component.cpp
365364
src/hydro/force_components/excitation_component.cpp

include/hydroc/coupling/added_mass.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
/*********************************************************************
22
* @file added_mass.h
3+
* @brief ChLoadAddedMass: Chrono load for infinite-frequency added mass.
34
*
4-
* @brief Header file for added mass ChLoad class.
5+
* MAIN TYPES:
6+
* - ChLoadAddedMass: ChLoadCustomMultiple subclass that applies
7+
* added mass from HDF5 hydrodynamic data to Chrono bodies.
8+
*
9+
* ROLE: Chrono coupling layer. Used internally by HydroForces to attach
10+
* added mass forces to the Chrono simulation system.
511
*********************************************************************/
612

713
#ifndef HYDROC_COUPLING_ADDED_MASS_H
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
/*********************************************************************
22
* @file added_mass.cpp
3+
* @brief Implementation of ChLoadAddedMass: Chrono load for added mass.
34
*
4-
* @brief Implementation of ChLoadAddedMass class.
5+
* ROLE: Chrono coupling layer. Provides a ChLoadCustomMultiple subclass
6+
* that applies infinite-frequency added mass from HDF5 data to bodies.
57
*********************************************************************/
8+
69
#include <hydroc/coupling/added_mass.h>
710

811
#include <utility>

0 commit comments

Comments
 (0)