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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should defaults in well also be set ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well looks to be handled differently. There's no volume balance and it seems it's all sized correctly (1 for isothermal and 2 for thermal). CompositionalMultiphaseWell.cpp:1379-1388

Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,8 @@ real64 CompositionalMultiphaseFVM::calculateResidualNorm( real64 const & GEOS_UN
// volume
subRegionResidualNorm[1] = subRegionFlowResidualNorm[1];
subRegionResidualNormalizer[1] = subRegionFlowResidualNormalizer[1];
// Ensure that the normalizer for the energy equation is non-zero
subRegionResidualNormalizer[2] = m_nonlinearSolverParameters.m_minNormalizer;
}

// step 2: first reduction across meshBodies/regions/subRegions
Expand Down
Loading