SPHinXsys icon indicating copy to clipboard operation
SPHinXsys copied to clipboard

Class `SoftConstrainSolidBodyRegion` cannot be used more than once for the same body

Open FabienPean-Virtonomy opened this issue 2 years ago • 0 comments

https://github.com/Xiangyu-Hu/SPHinXsys/blob/190d0ef53122fb33e0dfb229f56ab0b2980b059d/SPHINXsys/src/shared/particle_dynamics/solid_dynamics/constraint_dynamics.cpp#L255-L264

Registering the variable prevents using several of this type of constraint in a single simulation because it leads to error if it is constructed more than once for the same body:

Error: the variable 'TemporaryVelocity' has already been registered!

FabienPean-Virtonomy avatar Aug 12 '22 10:08 FabienPean-Virtonomy