Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.
https://www.sphinxsys.org/
Apache License 2.0
259 stars 197 forks source link

Change mass_ to "Mass" instead of "MassiveMeasure" #502

Closed WeiyiVirtonomy closed 3 months ago

WeiyiVirtonomy commented 3 months ago

Particle property mass_ is changed to the volumetric mass, instead of area mass, so that force_ and force_prior_ now represent the volumetric force.

WeiyiVirtonomy commented 3 months ago

The schemes of some source files are changed by the auto scheme correction, I can change them back if necessary

DongWuTUM commented 3 months ago

I have checked. It is Okay for me.

WeiyiVirtonomy commented 3 months ago

I have checked. It is Okay for me.

DampingPairwiseInner uses Vol_[index_i] / mass_[index_i], so for shell I have to change all the physical damping used to physical damping * thickness. Do you think it would be better to use ParticleVolume(index_i) in DampingPairwiseInner instead?

Xiangyu-Hu commented 3 months ago

@WeiyiVirtonomy You can make real pull request for the changes.