Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ class BiotPorosityUpdates : public PorosityBaseUpdates
m_bulkModulus[k] = bulkModulus;
m_shearModulus[k] = shearModulus;

GEOS_THROW_IF( m_bulkModulus[k] <= 0,
GEOS_FMT( "{}: the rock bulk modulus {} must be strictly positive", getFullName(), k ),
InputError );

GEOS_THROW_IF_GT_MSG( m_bulkModulus[k], m_grainBulkModulus[k],
GEOS_FMT( "{}: the rock bulk modulus {} cannot be greater than the grain bulk modulus {}", getFullName(), k ),
InputError );

m_biotCoefficient[k] = 1.0 - bulkModulus / m_grainBulkModulus[k];
}

Expand Down
Loading