-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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]>
- Loading branch information
1 parent
3845048
commit 66343ad
Showing
21 changed files
with
276 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @file sph_data_containers.cpp | ||
* @brief Global functions related to sph_data_containers.h | ||
* @author Bence Rochlitz, Luhui Han, Chi ZHang and Xiangyu Hu | ||
*/ | ||
|
||
#include "sph_data_containers.h" | ||
|
||
namespace SPH { | ||
//=================================================================================================// | ||
bool checkIfPointInBoundingBox(Vec3d point, BoundingBox& bbox) | ||
{ | ||
return point[0] >= bbox.first[0] && point[0] <= bbox.second[0] && | ||
point[1] >= bbox.first[1] && point[1] <= bbox.second[1] && | ||
point[2] >= bbox.first[2] && point[2] <= bbox.second[2]; | ||
} | ||
//=================================================================================================// | ||
bool checkIfPointInBoundingBox(Vec2d point, BoundingBox& bbox) | ||
{ | ||
return point[0] >= bbox.first[0] && point[0] <= bbox.second[0] && | ||
point[1] >= bbox.first[1] && point[1] <= bbox.second[1]; | ||
} | ||
//=================================================================================================// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.