Bugfix [#30954] Fluid obstacle checkbox has no effect
Needs testing for sideeffects. If there are negative sideeffects, revert commit and mark as "will not fix"/"not supported"/"needs UI fix".
This commit is contained in:
@@ -1453,7 +1453,9 @@ void LbmFsgrSolver::initMovingObstacles(bool staticInit) {
|
|||||||
//errMsg("GEOACTT"," obj "<<obj->getName()<<" a:"<<active<<","<<wasActive<<" s"<<sourceTime<<" t"<<targetTime <<" v"<<mObjectSpeeds[OId] );
|
//errMsg("GEOACTT"," obj "<<obj->getName()<<" a:"<<active<<","<<wasActive<<" s"<<sourceTime<<" t"<<targetTime <<" v"<<mObjectSpeeds[OId] );
|
||||||
// skip inactive in/out flows
|
// skip inactive in/out flows
|
||||||
if(ntype==CFInvalid){ errMsg("LbmFsgrSolver::initMovingObstacles","Invalid obj type "<<obj->getGeoInitType()); continue; }
|
if(ntype==CFInvalid){ errMsg("LbmFsgrSolver::initMovingObstacles","Invalid obj type "<<obj->getGeoInitType()); continue; }
|
||||||
if((!active) && (otype&(CFMbndOutflow|CFMbndInflow)) ) continue;
|
/* DG: only inflows/outlfows could be activated/deactivated, test new code that everything can be activated
|
||||||
|
if((!active) && (otype&(CFMbndOutflow|CFMbndInflow)) ) continue; */
|
||||||
|
if((!active) /* && (otype&(CFMbndOutflow|CFMbndInflow)) */ ) continue;
|
||||||
|
|
||||||
// copied from recalculateObjectSpeeds
|
// copied from recalculateObjectSpeeds
|
||||||
mObjectSpeeds[OId] = vec2L(mpParam->calculateLattVelocityFromRw( vec2P( (*mpGiObjects)[OId]->getInitialVelocity(mSimulationTime) )));
|
mObjectSpeeds[OId] = vec2L(mpParam->calculateLattVelocityFromRw( vec2P( (*mpGiObjects)[OId]->getInitialVelocity(mSimulationTime) )));
|
||||||
|
Reference in New Issue
Block a user