Skip to content
Snippets Groups Projects
Verified Commit becec3eb authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(fix) Small fix for VII

Removed runtime error raised in Problem for 3D cases and added condition to handle naming in core api
parent 5ba134b1
No related branches found
Tags v1.2.0
No related merge requests found
Pipeline #50740 passed
......@@ -204,8 +204,12 @@ def init_dart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
_pbl.add(dart.Kutta(_msh, [cfg['Tes'][i], cfg['Wakes'][i]+'_', cfg['Wings'][i], cfg['Fluid']]))
# add transpiration (blowing) boundary conditions
if viscous:
_blwb = dart.Blowing(_msh, cfg['Wing'])
_blww = dart.Blowing(_msh, cfg['Wake'])
if _dim == 2:
_blwb = dart.Blowing(_msh, cfg['Wing'])
_blww = dart.Blowing(_msh, cfg['Wake'])
else:
_blwb = dart.Blowing(_msh, cfg['Wings'][0])
_blww = dart.Blowing(_msh, cfg['Wakes'][0])
_pbl.add(_blwb)
_pbl.add(_blww)
else:
......
......@@ -231,9 +231,6 @@ void Problem::check() const
if (e->type() != ElType::TRI3)
throwUnsupElType(e, "3", "surface", ElType::TRI3);
}
// Blowing B.C.
if (!bBCs.empty())
throw std::runtime_error("Blowing boundary conditions are not supported for 3D problems!\n");
}
// Two-dimension problem
else if (nDim == 2)
......
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