Skip to content

Commit

Permalink
Mixing Plane is working
Browse files Browse the repository at this point in the history
  • Loading branch information
NAnand-TUD committed Mar 11, 2021
1 parent 121dd26 commit 7a8d088
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions SU2_CFD/src/drivers/CMultizoneDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,19 @@ bool CMultizoneDriver::Transfer_Data(unsigned short donorZone, unsigned short ta
{
donorSolver = FLOW_SOL;
targetSolver = FLOW_SOL;

This comment has been minimized.

Copy link
@salvovitale

salvovitale Mar 11, 2021

Member

This works. But it seems to me more an hack than a solution

auto nMarkerInt = config_container[donorZone]->GetnMarker_MixingPlaneInterface()/2;

/* --- transfer the average value from the donorZone to the targetZone*/
for (auto iMarkerInt = 1; iMarkerInt <= nMarkerInt; iMarkerInt++){
for (targetZone = 0; targetZone < nZone; targetZone++) {
if (targetZone != donorZone){
interface_container[donorZone][targetZone]->AllgatherAverage(solver_container[donorZone][INST_0][MESH_0][FLOW_SOL],solver_container[targetZone][INST_0][MESH_0][FLOW_SOL],
geometry_container[donorZone][INST_0][MESH_0],geometry_container[targetZone][INST_0][MESH_0],
config_container[donorZone], config_container[targetZone], iMarkerInt );
}
}
}
break;
}
case NO_TRANSFER:
Expand Down
4 changes: 3 additions & 1 deletion SU2_CFD/src/iteration/CFluidIteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ void CFluidIteration::Solve(COutput* output, CIntegration**** integration, CGeom
}

if (multizone && steady) {
Output(output, geometry, solver, config, config[val_iZone]->GetOuterIter(), StopCalc, val_iZone, val_iInst);
// TODO: I dont see why outer iter should be send instead of inner iter, outiter is in config already. Nitish
//Output(output, geometry, solver, config, config[val_iZone]->GetOuterIter(), StopCalc, val_iZone, val_iInst);
Output(output, geometry, solver, config, Inner_Iter, StopCalc, val_iZone, val_iInst);

/*--- Set the convergence to false (to make sure outer subiterations converge) ---*/

Expand Down

0 comments on commit 7a8d088

Please sign in to comment.