Skip to content

Commit

Permalink
regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuaihao-Zhang committed Nov 20, 2024
1 parent 616a866 commit 7baca0c
Show file tree
Hide file tree
Showing 21 changed files with 98 additions and 62 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* @file cohesive_soil_failure.cpp
* @brief 2D cohesive soil failure.
* @author Shuaihao Zhang and Xiangyu Hu
* @author Shuaihao Zhang
*/
#include "cohesive_soil_failure.h" //SPHinXsys Library.
#include "cohesive_soil_failure.h"
//----------------------------------------------------------------------
// Main program starts here.
//----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* @file cohesive_soil_failure.h
* @brief 2D cohesive soil failure.
* @details This is the one of the basic test cases, also the first case for understanding
* SPH method for modelling cohesive granular materials.
* @author Shuaihao Zhang and Xiangyu Hu
* @details This case employs the SPH to simulate cohesive granular materials.
* The transport velocity formulation is adopted to address the tensile instability.
* @author Shuaihao Zhang
*/
#include "sphinxsys.h" //SPHinXsys Library.
using namespace SPH; // Namespace cite here.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<TotalMechanicalEnergy>
<Snapshot_0 TotalMechanicalEnergy_0="19.991999999999997" />
<Snapshot_1000 TotalMechanicalEnergy_0="19.953251593404524" />
<Snapshot_2000 TotalMechanicalEnergy_0="19.838865121323003" />
<Snapshot_3000 TotalMechanicalEnergy_0="19.625310695201364" />
<Snapshot_4000 TotalMechanicalEnergy_0="19.286878725862305" />
<Snapshot_5000 TotalMechanicalEnergy_0="18.838439066151288" />
<Snapshot_6000 TotalMechanicalEnergy_0="18.367274568150872" />
<Snapshot_7000 TotalMechanicalEnergy_0="17.896383363817478" />
<Snapshot_8000 TotalMechanicalEnergy_0="17.473531020467789" />
<Snapshot_9000 TotalMechanicalEnergy_0="17.094991749740657" />
<Snapshot_10000 TotalMechanicalEnergy_0="16.736663030667422" />
<Snapshot_11000 TotalMechanicalEnergy_0="16.400200449802028" />
<Snapshot_12000 TotalMechanicalEnergy_0="16.083282570662483" />
<Snapshot_13000 TotalMechanicalEnergy_0="15.789637687176285" />
<Snapshot_14000 TotalMechanicalEnergy_0="15.51364741324546" />
<Snapshot_15000 TotalMechanicalEnergy_0="15.260203595907129" />
<Snapshot_16000 TotalMechanicalEnergy_0="15.029094146909864" />
<Snapshot_17000 TotalMechanicalEnergy_0="14.819768306442539" />
<Snapshot_18000 TotalMechanicalEnergy_0="14.631245127454624" />
<Snapshot_19000 TotalMechanicalEnergy_0="14.464870830421319" />
<Snapshot_20000 TotalMechanicalEnergy_0="14.32306761021249" />
<Snapshot_21000 TotalMechanicalEnergy_0="14.204867965089219" />
<Snapshot_22000 TotalMechanicalEnergy_0="14.108363328642453" />
<Snapshot_23000 TotalMechanicalEnergy_0="14.032128890754223" />
<Snapshot_24000 TotalMechanicalEnergy_0="13.972127366555473" />
<Snapshot_25000 TotalMechanicalEnergy_0="13.92450854592699" />
<Snapshot_26000 TotalMechanicalEnergy_0="13.886639661966484" />
<Snapshot_27000 TotalMechanicalEnergy_0="13.856989239766618" />
<Snapshot_28000 TotalMechanicalEnergy_0="13.834502807051821" />
<Snapshot_29000 TotalMechanicalEnergy_0="13.818050840088176" />
<Snapshot_30000 TotalMechanicalEnergy_0="13.806521152944551" />
<Snapshot_31000 TotalMechanicalEnergy_0="13.798970838361324" />
<Snapshot_32000 TotalMechanicalEnergy_0="13.794425826666521" />
<Snapshot_33000 TotalMechanicalEnergy_0="13.79223958058326" />
<Snapshot_34000 TotalMechanicalEnergy_0="13.791442793089528" />
<Snapshot_35000 TotalMechanicalEnergy_0="13.791166814870815" />
<Snapshot_36000 TotalMechanicalEnergy_0="13.790949201160567" />
<Snapshot_37000 TotalMechanicalEnergy_0="13.790737306814277" />
<Snapshot_38000 TotalMechanicalEnergy_0="13.790533731117447" />
<Snapshot_0 TotalMechanicalEnergy_0="145040.00000000003" />
<Snapshot_1000 TotalMechanicalEnergy_0="136016.62858352697" />
<Snapshot_2000 TotalMechanicalEnergy_0="129899.8050546325" />
</TotalMechanicalEnergy>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.992000000000001" snapshot_1="19.953251493685968" snapshot_2="19.83886509158522" snapshot_3="19.62530991237993" snapshot_4="19.286802701933137" snapshot_5="18.83869988243864" snapshot_6="18.366377043874813" snapshot_7="17.896719945894333" snapshot_8="17.476795914669736" snapshot_9="17.094181573715186" snapshot_10="16.737614897492982" snapshot_11="16.401472287148223" snapshot_12="16.084394602077023" snapshot_13="15.790162720425865" snapshot_14="15.514699142691665" snapshot_15="15.261883802556635" snapshot_16="15.030937772338103" snapshot_17="14.821202580626277" snapshot_18="14.632608127067627" snapshot_19="14.466786356119425" snapshot_20="14.324967197836449" snapshot_21="14.206292979045255" snapshot_22="14.110057871999324" snapshot_23="14.034060139825103" snapshot_24="13.974092589939765" snapshot_25="13.926392487645058" snapshot_26="13.888456432057673" snapshot_27="13.858878832015856" snapshot_28="13.836392445236662" snapshot_29="13.819886165573104" snapshot_30="13.808324791238068" snapshot_31="13.800707559253027" snapshot_32="13.796097627881007" snapshot_33="13.79387301988826" snapshot_34="13.793068526604085" snapshot_35="13.792806074198733" snapshot_36="13.792611232330245" snapshot_37="13.792423026594783" snapshot_38="13.79224089008977" />
<Particle_0 snapshot_0="145039.99999999997" snapshot_1="136013.02372498246" snapshot_2="129915.64750531528" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="145040" snapshot_1="136014.06539107743" snapshot_2="129931.96299370087" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="145040.00000000003" snapshot_1="136018.67466140469" snapshot_2="129881.10807364451" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="145040.00000000006" snapshot_1="136011.87942971161" snapshot_2="129916.99165217303" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="145039.99999999994" snapshot_1="136009.61469440637" snapshot_2="129921.8970937937" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="145040" snapshot_1="136017.91555195319" snapshot_2="129914.74435530332" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="145040" snapshot_1="136011.27868805017" snapshot_2="129898.7503651359" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.991999999999997" snapshot_1="19.953251637315162" snapshot_2="19.838866595236777" snapshot_3="19.625309723459456" snapshot_4="19.286828796170518" snapshot_5="18.838418853669779" snapshot_6="18.366471375042838" snapshot_7="17.896444768828395" snapshot_8="17.476682170536829" snapshot_9="17.095525143310596" snapshot_10="16.736751874379731" snapshot_11="16.4018022015849" snapshot_12="16.084283908524512" snapshot_13="15.790187994155138" snapshot_14="15.514631790284485" snapshot_15="15.261015327595729" snapshot_16="15.029811316868287" snapshot_17="14.820736132635069" snapshot_18="14.63174689914189" snapshot_19="14.466565826138829" snapshot_20="14.324223403920289" snapshot_21="14.205689342835061" snapshot_22="14.109001346841827" snapshot_23="14.032492528935006" snapshot_24="13.972112526290122" snapshot_25="13.924174295228459" snapshot_26="13.886089872215196" snapshot_27="13.856248354473486" snapshot_28="13.83352957259963" snapshot_29="13.816932529412661" snapshot_30="13.805368336977947" snapshot_31="13.797751640003678" snapshot_32="13.793131634835053" snapshot_33="13.79088610719608" snapshot_34="13.790075032146209" snapshot_35="13.789812728672299" snapshot_36="13.789618816914398" snapshot_37="13.789429804492393" snapshot_38="13.789245380424317" />
<Particle_0 snapshot_0="145040.00000000006" snapshot_1="136012.88679968426" snapshot_2="129919.09490070603" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.992000000000004" snapshot_1="19.953251569753721" snapshot_2="19.838864936783242" snapshot_3="19.625306465188501" snapshot_4="19.286818828542412" snapshot_5="18.838481839758373" snapshot_6="18.36746527978023" snapshot_7="17.895586494661686" snapshot_8="17.476709330147102" snapshot_9="17.094257270781505" snapshot_10="16.737845671811691" snapshot_11="16.401856738113075" snapshot_12="16.0839956462139" snapshot_13="15.78997969847077" snapshot_14="15.514394542010303" snapshot_15="15.261659894009147" snapshot_16="15.031192908071944" snapshot_17="14.821639293422546" snapshot_18="14.633043591125244" snapshot_19="14.467358419309178" snapshot_20="14.325799953839969" snapshot_21="14.207577539945618" snapshot_22="14.111199534004278" snapshot_23="14.03523478900696" snapshot_24="13.97524802980811" snapshot_25="13.927533102399995" snapshot_26="13.889550520473021" snapshot_27="13.85991317668902" snapshot_28="13.837351684452941" snapshot_29="13.820807263940811" snapshot_30="13.809219556692199" snapshot_31="13.801614004393702" snapshot_32="13.797003266369595" snapshot_33="13.794781833096296" snapshot_34="13.793983605370663" snapshot_35="13.793722852683306" snapshot_36="13.793528177887792" snapshot_37="13.793338111332963" snapshot_38="13.793152339091638" />
<Particle_0 snapshot_0="145040.00000000003" snapshot_1="136007.96947635533" snapshot_2="129912.76932837247" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.991999999999997" snapshot_1="19.953251576619913" snapshot_2="19.838866039525424" snapshot_3="19.625308183398992" snapshot_4="19.286871645775072" snapshot_5="18.838283816131433" snapshot_6="18.367058811599101" snapshot_7="17.896829416982023" snapshot_8="17.474640395801131" snapshot_9="17.095649678028838" snapshot_10="16.736136992961242" snapshot_11="16.400422659075826" snapshot_12="16.084084812167003" snapshot_13="15.789272931247918" snapshot_14="15.513074808014807" snapshot_15="15.260777418024984" snapshot_16="15.029474560830121" snapshot_17="14.819813479887108" snapshot_18="14.630284820088566" snapshot_19="14.464510100823784" snapshot_20="14.322631033065909" snapshot_21="14.204182435192935" snapshot_22="14.108187917205454" snapshot_23="14.032312918231444" snapshot_24="13.97229941882258" snapshot_25="13.92467427957515" snapshot_26="13.886797952466244" snapshot_27="13.857186948694251" snapshot_28="13.834705204215195" snapshot_29="13.818266609143327" snapshot_30="13.806745545958242" snapshot_31="13.799177802568366" snapshot_32="13.794622683763713" snapshot_33="13.792435380230959" snapshot_34="13.791642802478236" snapshot_35="13.791382863570743" snapshot_36="13.791186992744358" snapshot_37="13.790997100842116" snapshot_38="13.790812793068444" />
<Particle_0 snapshot_0="145040.00000000003" snapshot_1="136017.16310083523" snapshot_2="129887.55057981213" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.991999999999997" snapshot_1="19.953251432659517" snapshot_2="19.838864759886373" snapshot_3="19.62532359705849" snapshot_4="19.286735569368908" snapshot_5="18.838719873007115" snapshot_6="18.366666462669812" snapshot_7="17.898463365302497" snapshot_8="17.476550954670344" snapshot_9="17.094922119170239" snapshot_10="16.739021732791507" snapshot_11="16.401544487459294" snapshot_12="16.086337696814788" snapshot_13="15.791490149914241" snapshot_14="15.514879951741475" snapshot_15="15.261372109852367" snapshot_16="15.0311219759996" snapshot_17="14.821480782333293" snapshot_18="14.632475973247409" snapshot_19="14.467010119176425" snapshot_20="14.325492274959316" snapshot_21="14.20729263944266" snapshot_22="14.110641780262462" snapshot_23="14.034678633951174" snapshot_24="13.974613204485035" snapshot_25="13.926989548712438" snapshot_26="13.889056554709779" snapshot_27="13.859284185024514" snapshot_28="13.836648272227514" snapshot_29="13.820114595666523" snapshot_30="13.808565157514444" snapshot_31="13.801025862651024" snapshot_32="13.796512783651888" snapshot_33="13.79433023103052" snapshot_34="13.793547751837133" snapshot_35="13.793290990615668" snapshot_36="13.793093955548855" snapshot_37="13.792903649832162" snapshot_38="13.792718750997823" />
<Particle_0 snapshot_0="145040.00000000006" snapshot_1="136021.3362246133" snapshot_2="129900.07776811061" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.992000000000004" snapshot_1="19.953251592244289" snapshot_2="19.838865166177523" snapshot_3="19.625319752422783" snapshot_4="19.286777958124198" snapshot_5="18.838575798762648" snapshot_6="18.367354336857396" snapshot_7="17.896239660976313" snapshot_8="17.475589904508496" snapshot_9="17.094203912060561" snapshot_10="16.738267872713383" snapshot_11="16.401751794065902" snapshot_12="16.08411773683806" snapshot_13="15.790165492422007" snapshot_14="15.514367751077916" snapshot_15="15.261352242243031" snapshot_16="15.029655517760606" snapshot_17="14.820434891821087" snapshot_18="14.631958142298073" snapshot_19="14.466397997481401" snapshot_20="14.32473215006052" snapshot_21="14.206372308358723" snapshot_22="14.110027721763696" snapshot_23="14.034177094259247" snapshot_24="13.974330860316414" snapshot_25="13.926803049073454" snapshot_26="13.888973427759623" snapshot_27="13.859328815450727" snapshot_28="13.836672470888356" snapshot_29="13.820046422009664" snapshot_30="13.808332993010609" snapshot_31="13.800655097404151" snapshot_32="13.796030809433868" snapshot_33="13.793815648063184" snapshot_34="13.793010663811787" snapshot_35="13.792744753660152" snapshot_36="13.792546405722565" snapshot_37="13.792353945761656" snapshot_38="13.792166265469215" />
<Particle_0 snapshot_0="145040.00000000003" snapshot_1="136022.11218103679" snapshot_2="129853.9384876754" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.991999999999994" snapshot_1="19.95325151648354" snapshot_2="19.83886531632384" snapshot_3="19.62531563226494" snapshot_4="19.286830213026789" snapshot_5="18.838669831746387" snapshot_6="18.367847487099496" snapshot_7="17.897151666994581" snapshot_8="17.475005036169879" snapshot_9="17.093818649502435" snapshot_10="16.738470263746855" snapshot_11="16.400745060453936" snapshot_12="16.083634851287961" snapshot_13="15.790574701870327" snapshot_14="15.514915075284238" snapshot_15="15.261248254260646" snapshot_16="15.029961871653413" snapshot_17="14.820815278951599" snapshot_18="14.631934103627179" snapshot_19="14.466144241899103" snapshot_20="14.324554906458379" snapshot_21="14.20607101607839" snapshot_22="14.109592343549302" snapshot_23="14.033655869616435" snapshot_24="13.973580943130415" snapshot_25="13.925929290658402" snapshot_26="13.888010819292823" snapshot_27="13.858415808260705" snapshot_28="13.835842759371697" snapshot_29="13.819251166832492" snapshot_30="13.807628254780433" snapshot_31="13.799975508476573" snapshot_32="13.795300728556157" snapshot_33="13.793031482446555" snapshot_34="13.792202162376615" snapshot_35="13.791925079651664" snapshot_36="13.791718703647405" snapshot_37="13.79151798677983" snapshot_38="13.791322155175486" />
<Particle_0 snapshot_0="145040" snapshot_1="136019.59285768203" snapshot_2="129869.14589087898" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="39" />
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="19.992000000000001" snapshot_1="19.953251681522307" snapshot_2="19.838865107627335" snapshot_3="19.6253206963504" snapshot_4="19.286784117603595" snapshot_5="18.838410876061438" snapshot_6="18.366042757526778" snapshot_7="17.896654439674013" snapshot_8="17.477014635427853" snapshot_9="17.095214185299447" snapshot_10="16.737987787132539" snapshot_11="16.401767233148451" snapshot_12="16.085078343887346" snapshot_13="15.790575112142871" snapshot_14="15.51461169405237" snapshot_15="15.261779580442681" snapshot_16="15.03085085010734" snapshot_17="14.820866547857163" snapshot_18="14.632252161032191" snapshot_19="14.466648257085113" snapshot_20="14.324495661220906" snapshot_21="14.205723965804722" snapshot_22="14.108989100660125" snapshot_23="14.032959157240255" snapshot_24="13.972772629808173" snapshot_25="13.925114938778519" snapshot_26="13.887263494558407" snapshot_27="13.857665378942155" snapshot_28="13.835046419071801" snapshot_29="13.818450764884931" snapshot_30="13.806815856077193" snapshot_31="13.799216535546952" snapshot_32="13.794635279782726" snapshot_33="13.79237729372147" snapshot_34="13.791569867504272" snapshot_35="13.791312272326792" snapshot_36="13.791127378658363" snapshot_37="13.790948312129373" snapshot_38="13.790774362305584" />
<Particle_0 snapshot_0="145040.00000000006" snapshot_1="136015.90988565906" snapshot_2="129875.80278868473" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="3" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="145040.00000000006" snapshot_1="136020.34245682959" snapshot_2="129855.72734289782" />
</Result_Element>
</result>
Loading

0 comments on commit 7baca0c

Please sign in to comment.