Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • Paul.Dechamps/dartflo
1 result
Show changes
Commits on Source (1)
  • Paul Dechamps's avatar
    (feat) Modified core API for VII · 52a4059c
    Paul Dechamps authored
    Added the possibility to impose the dirichlet boundary condition explicitly through the api (as in default.py->problem). This change avoids random results obtained with the vii methodology and could be reverted in the future if a better fix is found.
    52a4059c
......@@ -183,6 +183,11 @@ def initDart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
_pbl.set(dart.Fluid(_msh, cfg['Fluid'], cfg['M_inf'], _dim, alpha, beta))
# add the initial condition
_pbl.set(dart.Initial(_msh, cfg['Fluid'], _dim, alpha, beta))
# add dirichlet boundary condition if indicated by the user
if 'dbc' in cfg and cfg['dbc']:
# Dirichlet BCs provided and explicitly imposed.
dirichlet = dart.Dirichlet(_msh, cfg['Upstream'], _dim, alpha, beta)
_pbl.add(dirichlet)
# add farfield boundary conditions (Neumann only, a DOF will be pinned automatically)
for i in range (len(cfg['Farfield'])):
_pbl.add(dart.Freestream(_msh, cfg['Farfield'][i], _dim, alpha, beta))
......@@ -221,7 +226,7 @@ def initDart(cfg, scenario='aerodynamic', task='analysis', viscous=False):
_blwb = dart.Blowing(_msh, cfg['Wing'])
_blww = dart.Blowing(_msh, cfg['Wake'])
elif _dim == 3:
if len(cfg['Wings'] > 1 or len(cfg['Wakes']) > 1):
if len(cfg['Wings']) > 1 or len(cfg['Wakes']) > 1:
raise RuntimeError('Viscous-inviscid interaction calculations are currently supported only for single body analysis!\n')
_blwb = dart.Blowing(_msh, cfg['Wings'][0])
_blww = dart.Blowing(_msh, cfg['Wakes'][0])
......