mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3349 Fracture Scaling : Improve naming in UI
This commit is contained in:
@@ -54,7 +54,7 @@ RimEllipseFractureTemplate::RimEllipseFractureTemplate()
|
||||
|
||||
CAF_PDM_InitObject("Fracture Template", ":/FractureTemplate16x16.png", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_halfLength, "HalfLength", 0.0, "Halflength X<sub>f</sub>", "", "", "");
|
||||
CAF_PDM_InitField(&m_halfLength, "HalfLength", 0.0, "Half Length X<sub>f</sub>", "", "", "");
|
||||
CAF_PDM_InitField(&m_height, "Height", 0.0, "Height", "", "", "");
|
||||
CAF_PDM_InitField(&m_width, "Width", 0.0, "Width", "", "", "");
|
||||
CAF_PDM_InitField(&m_permeability,"Permeability", 0.0, "Permeability [mD]", "", "", "");
|
||||
@@ -108,7 +108,7 @@ void RimEllipseFractureTemplate::fractureTriangleGeometry(std::vector<cvf::Vec3f
|
||||
{
|
||||
RigEllipsisTesselator tesselator(20);
|
||||
|
||||
float a = m_halfLength * m_widthScaleFactor;
|
||||
float a = m_halfLength * m_halfLengthScaleFactor;
|
||||
float b = m_height / 2.0f * m_heightScaleFactor;
|
||||
|
||||
tesselator.tesselateEllipsis(a, b, triangleIndices, nodeCoords);
|
||||
@@ -162,9 +162,9 @@ void RimEllipseFractureTemplate::createFractureGridAndAssignConductivities()
|
||||
int numberOfCellsJ = 35;
|
||||
|
||||
double height = m_height * m_heightScaleFactor;
|
||||
double halfLength = m_halfLength * m_widthScaleFactor;
|
||||
double halfLength = m_halfLength * m_halfLengthScaleFactor;
|
||||
|
||||
double cellSizeX = (halfLength * 2) / numberOfCellsI * m_widthScaleFactor;
|
||||
double cellSizeX = (halfLength * 2) / numberOfCellsI * m_halfLengthScaleFactor;
|
||||
double cellSizeZ = height / numberOfCellsJ * m_heightScaleFactor;
|
||||
|
||||
double cellArea = cellSizeX * cellSizeZ;
|
||||
|
||||
@@ -161,7 +161,7 @@ RimFractureTemplate::RimFractureTemplate()
|
||||
m_dFactorSummaryText.xmlCapability()->disableIO();
|
||||
|
||||
CAF_PDM_InitField(&m_heightScaleFactor, "HeightScaleFactor", 1.0, "Height", "", "", "");
|
||||
CAF_PDM_InitField(&m_widthScaleFactor, "WidthScaleFactor", 1.0, "Width", "", "", "");
|
||||
CAF_PDM_InitField(&m_halfLengthScaleFactor, "WidthScaleFactor", 1.0, "Half Length", "", "", "");
|
||||
CAF_PDM_InitField(&m_dFactorScaleFactor, "DFactorScaleFactor", 1.0, "D-factor", "", "", "");
|
||||
CAF_PDM_InitField(&m_conductivityScaleFactor, "ConductivityFactor", 1.0, "Conductivity", "", "The conductivity values read from file will be scaled with this parameters", "");
|
||||
CAF_PDM_InitField(&m_scaleApplyButton, "ScaleApplyButton", false, "Apply", "", "", "");
|
||||
@@ -319,7 +319,7 @@ void RimFractureTemplate::defineUiOrdering(QString uiConfigName, caf::PdmUiOrder
|
||||
auto group = uiOrdering.addNewGroup("Sensitivity Scale Factors");
|
||||
group->setCollapsedByDefault(false);
|
||||
group->add(&m_heightScaleFactor);
|
||||
group->add(&m_widthScaleFactor);
|
||||
group->add(&m_halfLengthScaleFactor);
|
||||
group->add(&m_dFactorScaleFactor);
|
||||
group->add(&m_conductivityScaleFactor);
|
||||
|
||||
@@ -749,9 +749,12 @@ void RimFractureTemplate::setId(int id)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplate::setScaleFactors(double widthScale, double heightScale, double dFactorScale, double conductivityScale)
|
||||
void RimFractureTemplate::setScaleFactors(double halfLengthScale,
|
||||
double heightScale,
|
||||
double dFactorScale,
|
||||
double conductivityScale)
|
||||
{
|
||||
m_widthScaleFactor = widthScale;
|
||||
m_halfLengthScaleFactor = halfLengthScale;
|
||||
m_heightScaleFactor = heightScale;
|
||||
m_dFactorScaleFactor = dFactorScale;
|
||||
m_conductivityScaleFactor = conductivityScale;
|
||||
@@ -765,15 +768,15 @@ void RimFractureTemplate::setScaleFactors(double widthScale, double heightScale,
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplate::scaleFactors(double* widthScale,
|
||||
void RimFractureTemplate::scaleFactors(double* halfLengthScale,
|
||||
double* heightScale,
|
||||
double* dFactorScale,
|
||||
double* conductivityScale) const
|
||||
{
|
||||
CVF_ASSERT(widthScale && heightScale && dFactorScale && conductivityScale);
|
||||
CVF_ASSERT(halfLengthScale && heightScale && dFactorScale && conductivityScale);
|
||||
|
||||
*widthScale = m_widthScaleFactor;
|
||||
*heightScale = m_widthScaleFactor;
|
||||
*halfLengthScale = m_halfLengthScaleFactor;
|
||||
*heightScale = m_heightScaleFactor;
|
||||
*dFactorScale = m_dFactorScaleFactor;
|
||||
*conductivityScale = m_conductivityScaleFactor;
|
||||
}
|
||||
@@ -810,7 +813,7 @@ double RimFractureTemplate::computeFractureWidth(const RimFracture* fractureInst
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplate::loadDataAndUpdateGeometryHasChanged()
|
||||
{
|
||||
|
||||
@@ -154,8 +154,8 @@ public:
|
||||
|
||||
void disconnectAllFracturesAndRedrawViews() const;
|
||||
void setId(int id);
|
||||
void setScaleFactors(double widthScale, double heightScale, double dFactorScale, double conductivityScale);
|
||||
void scaleFactors(double* widthScale, double* heightScale, double* dFactorScale, double* conductivityScale) const;
|
||||
void setScaleFactors(double halfLengthScale, double heightScale, double dFactorScale, double conductivityScale);
|
||||
void scaleFactors(double* halfLengthScale, double* heightScale, double* dFactorScale, double* conductivityScale) const;
|
||||
|
||||
void setContainmentTopKLayer(int topKLayer);
|
||||
void setContainmentBaseKLayer(int baseKLayer);
|
||||
@@ -217,7 +217,7 @@ protected:
|
||||
caf::PdmProxyValueField<QString> m_dFactorSummaryText;
|
||||
|
||||
caf::PdmField<double> m_heightScaleFactor;
|
||||
caf::PdmField<double> m_widthScaleFactor;
|
||||
caf::PdmField<double> m_halfLengthScaleFactor;
|
||||
caf::PdmField<double> m_dFactorScaleFactor;
|
||||
caf::PdmField<double> m_conductivityScaleFactor;
|
||||
caf::PdmField<bool> m_scaleApplyButton;
|
||||
|
||||
@@ -252,7 +252,7 @@ void RimStimPlanFractureTemplate::loadDataAndUpdate()
|
||||
|
||||
m_stimPlanFractureDefinitionData = RifStimPlanXmlReader::readStimPlanXMLFile(m_stimPlanFileName(),
|
||||
m_conductivityScaleFactor(),
|
||||
m_widthScaleFactor(),
|
||||
m_halfLengthScaleFactor(),
|
||||
m_heightScaleFactor(),
|
||||
-m_wellPathDepthAtFracture(),
|
||||
RifStimPlanXmlReader::MIRROR_AUTO,
|
||||
|
||||
Reference in New Issue
Block a user