From: michael Date: Mon, 30 Nov 2020 13:05:10 +0000 (+0100) Subject: Improved BC management X-Git-Tag: V9_7_0~118 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bb6705144be90a5f9ca6949ad875539942e70855;p=tools%2Fsolverlab.git Improved BC management --- diff --git a/CoreFlows/Models/src/TransportEquation.cxx b/CoreFlows/Models/src/TransportEquation.cxx index f7eef8f..db61455 100755 --- a/CoreFlows/Models/src/TransportEquation.cxx +++ b/CoreFlows/Models/src/TransportEquation.cxx @@ -179,10 +179,10 @@ double TransportEquation::computeTransportMatrix(){ } nameOfGroup = Fj.getGroupName(); - if (_limitField[nameOfGroup].bcType==NeumannTransport){ + if (_limitField[nameOfGroup].bcType==NeumannTransport || _limitField[nameOfGroup].bcType==OutletTransport ){ MatSetValue(_A,idm,idm,inv_dxi*un, ADD_VALUES); } - else if(_limitField[nameOfGroup].bcType==InletTransport){ + else if(_limitField[nameOfGroup].bcType==InletTransport || _limitField[nameOfGroup].bcType==DirichletTransport){ if(un>0){ MatSetValue(_A,idm,idm,inv_dxi*un, ADD_VALUES); } @@ -191,9 +191,9 @@ double TransportEquation::computeTransportMatrix(){ VecSetValue(_b0,idm,-inv_dxi*un*hk, ADD_VALUES); } } - else { + else {//bcType=NoneBCTransport cout<<"!!!!!!!!!!!!!!! Error TransportEquation::computeTransportMatrix() !!!!!!!!!!"<