Skip to content

Commit 08d3f3a

Browse files
committed
Changed default integration rule to backward Euler. Ensured array size is set to 0 when effective concentration plot variable is set to float.
1 parent 85be16f commit 08d3f3a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

FEBioChem/FEBioChemPlot.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ bool FEChemPlotEffectiveConcentration::SetFilter(const char* sz)
4141
if (m_nsol >= 0)
4242
{
4343
SetVarType(PLT_FLOAT);
44+
SetArraySize(0);
4445
}
4546
return (m_nsol != -1);
4647
}

FEBioChem/FENLReactionDiffusionSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ FEChemNLReactionDiffusionSolver::FEChemNLReactionDiffusionSolver(FEModel* fem) :
3030
// alpha = 0 --> Forward Euler (conditionally stable)
3131
// alpha = 0.5 --> Trapezoidal rule (unconditionally stable, second-order accurate)
3232
// alpha = 1.0 --> Backward Euler (unconditionally stable, first-order accurate)
33-
m_alpha = 0.5;
33+
m_alpha = 1.0; // we choose 1, eventhough it's less accurate, it doesn't cause oscillations
3434

3535
// we'll need a non-symmetric stiffness matrix
3636
m_msymm = REAL_UNSYMMETRIC;

0 commit comments

Comments
 (0)