Skip to content

Commit e90a008

Browse files
committed
Updating the test example to generate a more representative stress strain curve
1 parent cae5366 commit e90a008

19 files changed

Lines changed: 161 additions & 73 deletions
Binary file not shown.
23.8 KB
Loading
-732 Bytes
Loading
3.4 KB
Loading
-237 Bytes
Loading
742 Bytes
Loading
-2.01 KB
Loading
-2.88 KB
Loading

Example_Cases_Results/CASE_1_Non_Linear_Results.txt

Lines changed: 152 additions & 61 deletions
Large diffs are not rendered by default.

NonLinearModule/NonLinearModule_cpp.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ yield::~yield()
8484

8585
double yield::getvalue()
8686
{
87-
double r;
88-
r = val;
89-
return r;
87+
return val;
9088
}
9189

9290
VectorXd returnAlg (Map<VectorXd> &init_sigma, Map<MatrixXd> &Tr, Map<MatrixXd> &limit, Map<MatrixXd> &Q, Map<VectorXd> &delta_strain)
@@ -101,8 +99,7 @@ VectorXd returnAlg (Map<VectorXd> &init_sigma, Map<MatrixXd> &Tr, Map<MatrixXd>
10199

102100
sigma_trial = init_sigma + Q*delta_strain;
103101
yield f(sigma_trial, Tr, limit); q = f.getvalue();
104-
//std::cout<<"first q is"<<std::endl;
105-
//std::cout<<q;
102+
106103

107104
state_sigma = sigma_trial;
108105

0 commit comments

Comments
 (0)