Unexpected behavior of user-defined boundary condition #340
-
Hello, I'm using ADFlow to run a simple simulation using a mesh built on a sphere with pyHyp. I define the boundary conditions with various ways as shown below. However, the solutions keep giving me constant pressure, density and velocity values no matter what values I assigned to the altitude, Reynolds number, temperature... This makes me very confused. I contain a minimal case to reproduce the issue in the attached file. Please feel free to have a try if this problem also confuses you. Thanks for any comments. ...
CFDSolver = ADFLOW(options=aeroOptions, comm=comm)
# define aero problem
# air at 20℃ -> Kinematic Viscosity m2/s: 1.5111E-5
# v = 3 m/s = 10.8 km/h, Re = 198531
#ap = AeroProblem(
# name="test_solver_output", \
# V=3.0, rho=1.225, T=293.15, evalFuncs=["lift", "drag"], \
# areaRef = 0.7854, chordRef = 1
#)
# PS: it is the same if using a different way to initialize AP
ap = AeroProblem(
name="test_solver_output", \
V=3.0, reynolds=198531.0, reynoldsLength=1.0, T=293.15, P=100982, rho=1.2, evalFuncs=["lift", "drag"], \
areaRef = 0.7854, chordRef = 1
)
# or
#ap = AeroProblem(
# name="test_solver_output", \
# mach=0.0087, reynolds=198531.0, reynoldsLength=1.0, T=293.15, evalFuncs=["lift", "drag"], \
# areaRef = 0.7854, chordRef = 1
#)
# or
#ap = AeroProblem(
# name="test_solver_output", \
# mach=0.0087, altitude=100, evalFuncs=["lift", "drag"], \
# areaRef = 0.7854, chordRef = 1
#)
# simulation
funcs = {}
CFDSolver(ap)
# but the solution always gives Pressure=1, Density=1, Velocity=0.01 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, Secondly, how are you checking the solution values? Are you looking at the output files? Or are you extracting them from the |
Beta Was this translation helpful? Give feedback.
Ok, I understand the issue you are having. What you are seeing is actually nominal ADflow behavior.
The solver uses non-dimensional thermodynamic variables throughout the code (you can take a peek at this initialization Fortran routine if you are curious) and does not convert back to the dimensional value when writing the output file.
We generally look at normalized pressure and velocity contours when we check and discuss results. If you need dimensional values, you can just convert them back in Paraview or Tecplot, multiplying the pressure and density using your input values and / or the full thermodynamic state from the
AeroProblem
function I mentioned in my first comment.Note that the…