|
[Sponsors] |
April 2, 2024, 03:18 |
su2 optimization tutorial problem
|
#1 |
New Member
KAI HU
Join Date: Nov 2023
Posts: 2
Rep Power: 0 |
When I try this tutorial: Unconstrained shape design of a transonic inviscid airfoil at a cte. AoA. I download everything they required python, su2, NumPy, and SciPy. And also, I had performed the SU2_CFD, SU2_DOT, SU2_GEO and SU2_DEF to get all the file I needed.But when I run this two line the error occur----> raise exception(message)
SU2.EvaluationFailure: Path = D:\SU2\Naopt\DESIGNS\DSN_001\DIRECT\, Command = "D:\bin\SU2_CFD" config_CFD.cfg SU2 process returned error '1' The system cannot find the path specified. I did not create the DIRECT file this file appear after I run the below command lines. /////////// PS C:\Windows\System32\WindowsPowerShell\v1.0> cd D:\SU2\Naopt\ PS D:\SU2\Naopt> D:\SU2-v8.0.0-win64\bin\shape_optimization.py -g CONTINUOUS_ADJOINT -o SLSQP -f inv_NACA0012_basic.cfg ------------------------------------------------------------------------- | ___ _ _ ___ | | / __| | | |_ ) Release 8.0.0 "Harrier" | | \__ \ |_| |/ / | | |___/\___//___| Aerodynamic Shape Optimization Script | | | ------------------------------------------------------------------------- | SU2 Project Website: https://su2code.github.io | | | | The SU2 Project is maintained by the SU2 Foundation | | (http://su2foundation.org) | ------------------------------------------------------------------------- | Copyright 2012-2023, SU2 Contributors (cf. AUTHORS.md) | | | | SU2 is free software; you can redistribute it and/or | | modify it under the terms of the GNU Lesser General Public | | License as published by the Free Software Foundation; either | | version 2.1 of the License, or (at your option) any later version. | | | | SU2 is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | Lesser General Public License for more details. | | | | You should have received a copy of the GNU Lesser General Public | | License along with SU2. If not, see <http://www.gnu.org/licenses/>. | ------------------------------------------------------------------------- Found: mesh_NACA0012_inv.su2 Found: solution_flow.dat New Project: ./ Removing old designs in 10s. Done! Sequential Least SQuares Programming (SLSQP) parameters: Number of design variables: 38 ( 38 ) Objective function scaling factor: [1.0] Maximum number of iterations: 100 Requested accuracy: 1e-16 Initial guess for the independent variable(s): [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] Lower and upper bound for each independent variable: [(-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001), (-0.0001, 0.0001)] Traceback (most recent call last): File "D:\SU2-v8.0.0-win64\bin\shape_optimization.py", line 306, in <module> main() File "D:\SU2-v8.0.0-win64\bin\shape_optimization.py", line 184, in main shape_optimization( File "D:\SU2-v8.0.0-win64\bin\shape_optimization.py", line 282, in shape_optimization SU2.opt.SLSQP(project, x0, xb, its, accu) File "D:\SU2-v8.0.0-win64\bin\SU2\opt\scipy_tools.py", line 128, in scipy_slsqp outputs = fmin_slsqp( ^^^^^^^^^^^ File "D:\python\Lib\site-packages\scipy\optimize\_slsqp_py.py", line 210, in fmin_slsqp res = _minimize_slsqp(func, x0, args, jac=fprime, bounds=bounds, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ File "D:\python\Lib\site-packages\scipy\optimize\_slsqp_py.py", line 383, in _minimize_slsqp sf = _prepare_scalar_function(func, x, jac=jac, args=args, epsilon=eps, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\scipy\optimize\_optimize.py", line 402, in _prepare_scalar_function sf = ScalarFunction(fun, x0, args, grad, hess, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\scipy\optimize\_differentiable_functions. py", line 166, in __init__ self._update_fun() File "D:\python\Lib\site-packages\scipy\optimize\_differentiable_functions. py", line 262, in _update_fun self._update_fun_impl() File "D:\python\Lib\site-packages\scipy\optimize\_differentiable_functions. py", line 163, in update_fun self.f = fun_wrapped(self.x) ^^^^^^^^^^^^^^^^^^^ File "D:\python\Lib\site-packages\scipy\optimize\_differentiable_functions. py", line 145, in fun_wrapped fx = fun(np.copy(x), *args) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\SU2-v8.0.0-win64\bin\SU2\opt\scipy_tools.py", line 416, in obj_f obj_list = project.obj_f(x) ^^^^^^^^^^^^^^^^ File "D:\SU2-v8.0.0-win64\bin\SU2\opt\project.py", line 243, in obj_f return self._eval(konfig, func, dvs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SU2-v8.0.0-win64\bin\SU2\opt\project.py", line 211, in _eval vals = design._eval(func, *args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SU2-v8.0.0-win64\bin\SU2\eval\design.py", line 151, in _eval vals = eval_func(*inputs) ^^^^^^^^^^^^^^^^^^ File "D:\SU2-v8.0.0-win64\bin\SU2\eval\design.py", line 250, in obj_f func += su2func(this_obj, config, state) * sign * scale * global_factor ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\SU2-v8.0.0-win64\bin\SU2\eval\functions.py", line 97, in function aerodynamics(config, state) File "D:\SU2-v8.0.0-win64\bin\SU2\eval\functions.py", line 285, in aerodynamics info = su2run.direct(config) ^^^^^^^^^^^^^^^^^^^^^ File "D:\SU2-v8.0.0-win64\bin\SU2\run\direct.py", line 78, in direct SU2_CFD(konfig) File "D:\SU2-v8.0.0-win64\bin\SU2\run\interface.py", line 114, in CFD run_command(the_Command) File "D:\SU2-v8.0.0-win64\bin\SU2\run\interface.py", line 290, in run_command raise exception(message) SU2.EvaluationFailure: Path = D:\SU2\Naopt\DESIGNS\DSN_001\DIRECT\, Command = "D:\bin\SU2_CFD" config_CFD.cfg SU2 process returned error '1' The system cannot find the path specified. |
|
April 3, 2024, 04:21 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 679
Rep Power: 21 |
So what is the error?
|
|
April 3, 2024, 06:54 |
|
#3 |
New Member
KAI HU
Join Date: Nov 2023
Posts: 2
Rep Power: 0 |
When I run this two line in powershell
PS C:\Windows\System32\WindowsPowerShell\v1.0> cd D:\SU2\Naopt\ PS D:\SU2\Naopt> D:\SU2-v8.0.0-win64\bin\shape_optimization.py -g And I got this, but the DIRECT file is create when I run these two lines. CONTINUOUS_ADJOINT -o SLSQP -f inv_NACA0012_basic.cfg SU2.EvaluationFailure: Path = D:\SU2\Naopt\DESIGNS\DSN_001\DIRECT\, Command = "D:\bin\SU2_CFD" config_CFD.cfg SU2 process returned error '1' The system cannot find the path specified. |
|
Tags |
su2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What's the meaning of 'NIT','FC','GNORM' in the output file of optimization in SU2? | lbfhappy | SU2 Shape Design | 6 | April 5, 2018 00:50 |
Problem with Tutorial "Constrained Optimal Shape Design of a Fixed Wing"" | MarcF | SU2 Shape Design | 3 | December 9, 2016 05:30 |
multiRegionHeater tutorial visualization problem | Bufacchi | OpenFOAM Running, Solving & CFD | 3 | September 18, 2015 10:20 |
Problem on Fluent Tutorial: Horizontal Film Boilig | Feng | FLUENT | 2 | April 13, 2013 06:34 |
newbie problem with cavity tutorial | miki | OpenFOAM Running, Solving & CFD | 8 | September 2, 2012 16:22 |