Skip to content

Commit

Permalink
got rid of the return statement issue. Only committing rn so I can ch…
Browse files Browse the repository at this point in the history
…ange the branch and start more systemmatically testing for what is making the convergence issue so shit. Stay tuned.
  • Loading branch information
JRao-rgb committed Dec 7, 2023
1 parent 908ae08 commit 08e1e09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Code/Source/cvOneDMaterialOlufsen.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ double cvOneDMaterialOlufsen::GetD2pDS2(double area, double z)const{
}

double cvOneDMaterialOlufsen::GetOutflowFunction(double pressure, double z)const{
// cout << "L_P: " << L_P << " pressure: " << pressure << " P_ambient: " << P_ambient << " total: " << L_P*(pressure - P_ambient) << endl;
return 1e-4 * (pressure - 0.0);
return 1e-4 * (pressure - 10000.0);
}

double cvOneDMaterialOlufsen::GetDOutflowDp(double pressure, double z)const{
Expand Down
2 changes: 1 addition & 1 deletion Code/Source/cvOneDSolverDefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#define MAX_STRING_SIZE 20
#define EPSILON 1.0e-10
#define OUTPUT_PRECISION 12
#define MAX_NONLINEAR_ITERATIONS 1000
#define MAX_NONLINEAR_ITERATIONS 30
#define RELATIVE_TOLERANCE 1.0e-7
#define ABSOLUTE_TOLERANCE 5.0e-6

Expand Down

0 comments on commit 08e1e09

Please sign in to comment.