Skip to content
Snippets Groups Projects
Commit 3e8946e9 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[nonequil] use scv bracket operator to obtain volvars

parent bcccf922
No related branches found
No related tags found
1 merge request!922Fix/box elemvolvars access
......@@ -281,8 +281,7 @@ public:
// In the case of a kinetic consideration, mass transfer
// between phases is realized via source terms there is a
// balance equation for each component in each phase
const auto& localScvIdx = scv.localDofIndex();
const auto& volVars = elemVolVars[localScvIdx];
const auto& volVars = elemVolVars[scv];
ComponentVector componentIntoPhaseMassTransfer[numPhases];
#define FUNKYMASSTRANSFER 0
#if FUNKYMASSTRANSFER
......
......@@ -164,8 +164,7 @@ public:
const SubControlVolume &scv)
{
//specialization for 2 fluid phases
const auto& localScvIdx = scv.localDofIndex();
const auto& volVars = elemVolVars[localScvIdx];
const auto& volVars = elemVolVars[scv];
const auto& fs = volVars.fluidState() ;
const Scalar characteristicLength = volVars.characteristicLength() ;
......@@ -415,8 +414,7 @@ public:
const SubControlVolume &scv)
{
//specialization for 2 fluid phases
const auto &localScvIdx = scv.localDofIndex();
const auto &volVars = elemVolVars[localScvIdx];
const auto &volVars = elemVolVars[scv];
const Scalar awn = volVars.interfacialArea(phase0Idx, phase1Idx);
const Scalar aws = volVars.interfacialArea(phase0Idx, sPhaseIdx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment