Skip to content

Commit

Permalink
Narrow interval
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Oct 17, 2023
1 parent aae0537 commit 6451d92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Material/Material3D/Concrete/CDPM2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,16 +395,18 @@ int CDPM2::update_trial_status(const vec& t_strain) {
gamma = 0.;
approx_update();

gamma = f / (pfps * double_shear * gs + pfpp * bulk * gp + pfpkp * gg / xh);
gamma = f / elastic_modulus;
auto low = 0.;
while(true) {
approx_update();
if(f < 0.) break;
low = gamma;
gamma *= 2.;
}

auto low = 0., high = gamma;
auto high = gamma;
while(true) {
if(fabs(high - low) < std::numeric_limits<float>::epsilon()) break;
if(fabs(high - low) < tolerance) break;
gamma = .5 * (low + high);
approx_update();
(f < 0. ? high : low) = gamma;
Expand Down
2 changes: 1 addition & 1 deletion Material/Material3D/Concrete/CDPM2.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct DataCDPM2 {
const double elastic_modulus = 3E4;
const double poissons_ratio = .3;
const double ft = 3.;
const double fc = 10.;
const double fc = 30.;
const double qh0 = .3;
const double hp = .05;
const double df = .85;
Expand Down

0 comments on commit 6451d92

Please sign in to comment.