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

(tests) Update rae 3D test

parent fc881751
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ def cfgInviscid(nthrds, verb):
'Verb' : verb, # verbosity
# Model (geometry or mesh)
'File' : os.path.abspath(os.path.join(os.path.abspath(__file__), '../../../models/dart/rae_3.geo')), # Input file containing the model
'Pars' : {'spn' : 1.0, 'lgt' : 6.0, 'wdt' : 3.0, 'hgt' : 6.0, 'msN' : 0.02, 'msF' : 1}, # parameters for input file model
'Pars' : {'spn' : 1.0, 'lgt' : 6.0, 'wdt' : 3.0, 'hgt' : 6.0, 'msN' : 0.03, 'msF' : 1}, # parameters for input file model
'Dim' : 3, # problem dimension
'Format' : 'vtk', # save format (vtk or gmsh)
# Markers
......@@ -90,9 +90,9 @@ def cfgBlast(verb):
'xtrF' : [0., 0.], # Forced transition locations
# Sections generation parameters
'sections' : {'wing':np.linspace(0.05, 0.9, 10)}, # Sections on the wing
'sections' : {'wing':np.linspace(0.05, 0.9, 50)}, # Sections on the wing
'genSections': 'auto', # Section generation technique ['auto', 'file', 'vtk']
'nPoints': 250, # Section will have nPoints+1 points because of the duplicate TE
'nPoints': 200, # Section will have nPoints+1 points because of the duplicate TE
'smooth_sections': 1e-7, # Smoothing factor for the section generation (only used when genSections is 'auto')
# Interpolator parameters
......@@ -158,11 +158,11 @@ def main():
# Test solution
print(ccolors.ANSI_BLUE + 'PyTesting...' + ccolors.ANSI_RESET)
tests = CTests()
tests.add(CTest('Cl', isol.getCl(), 0.1305, 5e-2))
tests.add(CTest('Cd wake', vsol.getCdt(), 0.0113, 1e-3, forceabs=True))
tests.add(CTest('Cd integral', vsol.getCdf() + isol.getCd(), 0.0172, 1e-3, forceabs=True))
tests.add(CTest('Cdf', vsol.getCdf(), 0.0115, 1e-3, forceabs=True))
tests.add(CTest('Iterations', len(aeroCoeffs['Cl']), 4, 0, forceabs=True))
tests.add(CTest('Cl', isol.getCl(), 0.11, 5e-2))
tests.add(CTest('Cd wake', vsol.getCdt(), 0.0119, 1e-3, forceabs=True))
tests.add(CTest('Cd integral', vsol.getCdf() + isol.getCd(), 0.0173, 1e-3, forceabs=True))
tests.add(CTest('Cdf', vsol.getCdf(), 0.0109, 1e-3, forceabs=True))
tests.add(CTest('Iterations', len(aeroCoeffs['Cl']), 3, 0, forceabs=True))
tests.run()
if not args.nogui:
......
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