Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge bence virtonomy2 #61

Merged
merged 26 commits into from
Sep 19, 2021
Merged

Merge bence virtonomy2 #61

merged 26 commits into from
Sep 19, 2021

Conversation

BenceVirtonomy
Copy link
Collaborator

@BenceVirtonomy BenceVirtonomy commented Sep 9, 2021

  • New boundary conditions:
    - ForceInBodyRegion
    - SurfacePressure
    - SpringNormalOnSurfaceParticles
  • Bernoulli beam with surface pressure to validate to the analytical solution
  • Numerical stress correction fixed - stress distribution is better for Bernoulli beam, follow the analytical distribution
  • Remove structural simulation class
  • All submodules moved to 3rd_party folder. Simbody is compiled into a separate library and linked after compilation. Clapack functions removed from Simbody. Eigen is added to replace eigen value calculation in Simbody. WasmTBB added as submodule for webassembly compilation. CMake options to compile with Simbody are cleaned up.
  • getAngleBetweenTwoVectors and getVectorProjectionOfVector added to small_vectors.h

BenceVirtonomy and others added 16 commits August 9, 2021 13:43
* ConstrainSolidBody renamed

* constrain solid body reagion added

* force boundary condition

* force BC edited
* SurfacePressureFromSource added

* SurfacePressureFromSource::Update

* BC prob works but the particle normals are missing

* time dependent surface pressure works

* cube case moved to source tests
* Translate body part (#45)

* Feature/contact stent 2 (#10)

* PositionSolidBody added

* boundary condition works but breaks numerically

* no message

* first unit test added

* indentation change

* PositionSolidBody test

* remove file

* small fixes

* position constraint changed
works between start and end time

* scaling boundary condition

* PositionScaleSolidBody unit test

* particel adaptation changed

* system resolution ratio added to particle adaptation

* add googletest to docker and workflow

* unit test removed temporarily

* unit rest removed

* SolidParticleRelaxation added to update initial particle position

* gtest added again

* gtest install changed

* gtest

* gtest

* gtest

* gtest

* cd path updated

* change to shared pointers

* unit test pointers changed

* gtest added to docker

* initialization changed

* disable tests for simbody

* errors fixed

* TranslationSolidBody added; translation cylinder

* whitespace

* fixes

* TranslateSolidBody corrected

* writeToFile update

* change SET to set

* catch(out_of_range& e) added

* change to size_t

* cmake minimum removed

* BoundingBox test changed

* fix writeToFIle

* test change

* Feature/position bc stent (#34)

* PositionSolidBody added

* boundary condition works but breaks numerically

* no message

* first unit test added

* indentation change

* PositionSolidBody test

* remove file

* small fixes

* position constraint changed
works between start and end time

* scaling boundary condition

* PositionScaleSolidBody unit test

* particel adaptation changed

* system resolution ratio added to particle adaptation

* add googletest to docker and workflow

* unit test removed temporarily

* unit rest removed

* SolidParticleRelaxation added to update initial particle position

* gtest added again

* gtest install changed

* gtest

* gtest

* gtest

* gtest

* cd path updated

* change to shared pointers

* unit test pointers changed

* gtest added to docker

* initialization changed

* errors fixed

* TranslationSolidBody added; translation cylinder

* whitespace

* fixes

* TranslateSolidBody corrected

* writeToFile update

* change SET to set

* catch(out_of_range& e) added

* change to size_t

* cmake minimum removed

* BoundingBox test changed

* fix writeToFIle

* test change

Co-authored-by: JohnVirtonomy <[email protected]>

* -Werror only works for linux

* TEST TranslateSolidBodyTuple

* Update CMakeLists.txt

remove werror flag for msvc

* update from bitbucket 01.07.2021

* delete repeated files

* brief information on google test in repo readme

* delete clapack and simbody folder in root

* google test works for windows but the unit test case did not copy stl file right in windows

* now test_3d_unit works in windows.

* information on installing google test in windows

* add a comment on install ing for VS in windows

* translation with same scale&unit test update

* skip testing when [ci skip] in the commit message

* update test_3d_unit - TranslateSolidBody not work

* time-dependent-contact

* number of time dep. contacts fixed

* setup unit test for time dependent contact

* Translate Solid Body fixed
but tolerance is only 0.01

* output changed to 100 files always

* 07.13.2021 update

* typo

* new files from bitbucket

* update 07.13.2021

* time dependent contact fixed

* time dep contact fixed

* remove cout

* time dep. contact tests finished

* renaming

* fix naming

* move test class into seperate header

* cmake changes

* changing function names to lower case

* change cmake list

* small fix

Co-authored-by: Ubuntu <virtonomy@SPHsimulation2.qg4qjrxycqxetcothedhm1ylih.ax.internal.cloudapp.net>
Co-authored-by: JohnVirtonomy <[email protected]>
Co-authored-by: Xiangyu Hu <[email protected]>
Co-authored-by: Wen-Yang Chu <[email protected]>
Co-authored-by: Xiangyu Hu <xiangyu.hu@tum>
Co-authored-by: Xiangyu Hu <[email protected]>

* TranslateSolidBodyPart added

* particle relaxation fixed

* change Get_ to get_

* checkIfPointInBoundingBox moved

Co-authored-by: Ubuntu <virtonomy@SPHsimulation2.qg4qjrxycqxetcothedhm1ylih.ax.internal.cloudapp.net>
Co-authored-by: JohnVirtonomy <[email protected]>
Co-authored-by: Xiangyu Hu <[email protected]>
Co-authored-by: Wen-Yang Chu <[email protected]>
Co-authored-by: Xiangyu Hu <xiangyu.hu@tum>
Co-authored-by: Xiangyu Hu <[email protected]>

* update from bitbucket 07-30-2021

* replace the wrong gpuSPHinXsys

* Simbody artifacts instead of installation

* simbody variable added to cmake command

* change path

* conflict resolved

* remove doubled test

Co-authored-by: Ubuntu <virtonomy@SPHsimulation2.qg4qjrxycqxetcothedhm1ylih.ax.internal.cloudapp.net>
Co-authored-by: JohnVirtonomy <[email protected]>
Co-authored-by: Xiangyu Hu <[email protected]>
Co-authored-by: Wen-Yang Chu <[email protected]>
Co-authored-by: Xiangyu Hu <xiangyu.hu@tum>
Co-authored-by: Xiangyu Hu <[email protected]>
* SurfacePressureFromSource added

* SurfacePressureFromSource::Update

* BC prob works but the particle normals are missing

* stress relaxation changed to Kirchhof

* time dependent surface pressure works

* cube case moved to source tests

* cube test removed

* add overtime to position based tests

* go back to last working state

* back to working version

Co-authored-by: Ubuntu <virtonomy@SPHbence.qg4qjrxycqxetcothedhm1ylih.ax.internal.cloudapp.net>
* remove submodules

* simbody added on no lapack

* simbody

* cases user moved

* scripts removed

* simbody set to master

* variables removed

* 3d lib cmake

* boost option

* simbody linking to built libraries

* renaming + 2D cmake

* option subdir

* werror

* eigen in simbody

* eigen added

* eigen

* eigen include

* eigen

* add wasmtbb

* working wasm example

* cmake changes

* restore working wasm build

* change memory pool for wasm

* work on eigen

Co-authored-by: wen-yang chu <[email protected]>
* work on eigen

* all tests pass with Eigen

* macro renamed simbody

* all SPH tests pass for static build

* remove wasm files
* first setup of spring on surface normal direction

* adjusted combi of spring and pressure BC

* correction of damping coefficient

* simulation runs
but too small time steps, only one vtu-file

* consideration normal portion in opposite direction

* creation of tests for vector calculations

* simplification of vector norm calculation

* small vector test working, but failing

* small vector tests passing

* angle tests added

* correction of Vector Projection
more test examples

* correction of normal spring
beam still spinning

* adding of functions for vector calculations

* change of spring force in right direction

* debugging, still spinning after timestep 18

* change of vector calculation example

* correction of normal spring force

* for-loop removed, checking of spring & damping

* area moved and considered in damping

* adding gtest to CMakeLists

* simplified dot_product_2 calculation

* change from Vecd to Vec3d for calculations

* changed Vector declaration and functions

* correction of Spring and Damping

Co-authored-by: JohnVirtonomy.io <[email protected]>
* emscripten option to disable gtest

* comment out compiling flags

* bug fix

Co-authored-by: wen-yang chu <[email protected]>
@BenceVirtonomy BenceVirtonomy marked this pull request as ready for review September 9, 2021 21:19
@chuvirtonomy
Copy link
Collaborator

@BenceVirtonomy please provide PR description

@BenceVirtonomy
Copy link
Collaborator Author

@BenceVirtonomy please provide PR description

done

CMakeLists.txt Show resolved Hide resolved
SPHINXsys/src/shared/common/small_vectors.cpp Outdated Show resolved Hide resolved
SPHINXsys/src/shared/common/small_vectors.cpp Show resolved Hide resolved
SPHINXsys/src/shared/common/small_vectors.cpp Show resolved Hide resolved
SPHINXsys/src/shared/common/small_vectors.cpp Show resolved Hide resolved
cmake/FindSIMBODY.cmake Outdated Show resolved Hide resolved
.gitmodules Show resolved Hide resolved
SPHINXsys/src/shared/meshes/my_memory_pool.h Show resolved Hide resolved
@BenceVirtonomy BenceVirtonomy merged commit 0191fd8 into master Sep 19, 2021
@chuvirtonomy chuvirtonomy deleted the merge_BenceVirtonomy2 branch October 16, 2021 22:50
Xiangyu-Hu pushed a commit that referenced this pull request Mar 8, 2022
#61)

* rebase to master

* compiles

Co-authored-by: JohnVirtonomy <[email protected]>
Co-authored-by: BenceVirtonomy <[email protected]>
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.

4 participants