CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Errors in install new version.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2023, 01:01
Default Errors in install new version.
  #1
Member
 
Zhang
Join Date: Mar 2023
Posts: 72
Rep Power: 3
Amber0922 is on a distinguished road
I had installed the 6.2.0 version on cluster,which is offline. Now I need the new version, and I try to install 7.2.1, I try to use the ./configure.ac to install, but it reports error.
-------------------------------------------------------------------------------------
./configure.ac: line 38: syntax error near unexpected token `[SU2],'
./configure.ac: line 38: `AC_INIT([SU2], [6.2.0], [su2code-dev@lists.stanford.edu],'
--------------------------------------------------------------------------------------
How can I install the new version? Can I update the old one by replace some files or just install the new one.
Amber0922 is offline   Reply With Quote

Old   March 27, 2023, 03:27
Default
  #2
Member
 
PENG YAN
Join Date: Jul 2021
Location: Italy
Posts: 34
Rep Power: 5
PENGGEGE777 is on a distinguished road
To install the newest version of SU2:
(I assume that you already install all dependency, like git, g++,c++python3, openmpi)


1. Download SU2 from github:

$git clone https://github.com/su2code/SU2.git


2. configuration :

$ cd SU2

$./meson.py build -Denable-autodiff=true -Dwith-mpi=enabled --prefix=/home/yan/CFD/ (path for SU2)


3. after configuration, it will output the following info:


export SU2_RUN=/home/yan/CFD/bin
export SU2_HOME=/home/yan/CFD/SU2
export PATH=$PATH:$SU2_RUN
export PYTHONPATH=$PYTHONPATH:$SU2_RUN


copy them in bashrc file (vim ~/.bashrc and source ~/.bashrc)
4. compile SU2:

$./ninja -C build install -j4 (with 4 cores)


Done.


See SU2 homepage for more info:
https://su2code.github.io/docs_v7/Bu...2-Linux-MacOS/
PENGGEGE777 is offline   Reply With Quote

Old   March 27, 2023, 23:27
Default Problems in installation and tutorials.
  #3
Member
 
Zhang
Join Date: Mar 2023
Posts: 72
Rep Power: 3
Amber0922 is on a distinguished road
I had installed the 7.5.1 version by the code SU2-v7.5.1-linux64-mpi, but when I try the inviscid_Bump tutorials, it comes to two questions.

1. The iterations is disordered.

2.It can't open the restart_flow.dat.
--------------------------------------------------------------------------
Error in "bool CFileWriter::OpenMPIFile(std::string)":
-------------------------------------------------------------------------
Unable to open file restart_flow.dat
------------------------------ Error Exit -------------------------------

What leads to these problems? The case or the installation?
Amber0922 is offline   Reply With Quote

Old   March 28, 2023, 04:17
Default
  #4
Member
 
PENG YAN
Join Date: Jul 2021
Location: Italy
Posts: 34
Rep Power: 5
PENGGEGE777 is on a distinguished road
It seems that you are running the simulation with 'RESTART_SOL = YES'.


Can you try to set 'RESTART_SOL = NO' and run simulation?


Also, it is better if you can share your config and mesh file here.
PENGGEGE777 is offline   Reply With Quote

Old   March 28, 2023, 05:14
Default
  #5
Member
 
Zhang
Join Date: Mar 2023
Posts: 72
Rep Power: 3
Amber0922 is on a distinguished road
That's the problem. I set RESTART_SOL= NO. And my Configuration is the same as the tutorials.
--------------------------------------------------------------------------
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
%
% Physical governing equations (EULER, NAVIER_STOKES,
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
% POISSON_EQUATION)
SOLVER= NAVIER_STOKES
%
% Specify turbulence model (NONE, SA, SA_NEG, SST)
KIND_TURB_MODEL= NONE
%
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT)
MATH_PROBLEM= DIRECT
%
% Restart solution (NO, YES)
RESTART_SOL= NO

% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------%
%
% Mach number (non-dimensional, based on the free-stream values)
MACH_NUMBER= 0.2
%
% Angle of attack (degrees, only for compressible flows)
AOA= 0.0
%
% Side-slip angle (degrees, only for compressible flows)
SIDESLIP_ANGLE= 0.0
%
% Free-stream temperature (288.15 K by default)
FREESTREAM_TEMPERATURE= 297.62
%
% Reynolds number (non-dimensional, based on the free-stream values)
REYNOLDS_NUMBER= 1301233.166
%
% Reynolds length (1 m by default)
REYNOLDS_LENGTH= 0.3048

% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
%
% Reference origin for moment computation
REF_ORIGIN_MOMENT_X = 0.25
REF_ORIGIN_MOMENT_Y = 0.00
REF_ORIGIN_MOMENT_Z = 0.00
%
% Reference length for pitching, rolling, and yawing non-dimensional moment
REF_LENGTH= 1.0
%
% Reference area for force coefficients (0 implies automatic calculation)
REF_AREA= 0.3048

% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
%
% Navier-Stokes (no-slip), constant heat flux wall marker(s) (NONE = no marker)
% Format: ( marker name, constant heat flux (J/m^2), ... )
MARKER_HEATFLUX= ( wall, 0.0 )
%
% Navier-Stokes (no-slip), isothermal wall marker(s) (NONE = no marker)
% Format: ( marker name, constant wall temperature (K), ... )
MARKER_ISOTHERMAL= ( NONE )
%
% Symmetry boundary marker(s) (NONE = no marker)
MARKER_SYM= ( symmetry )
%
% Inlet boundary marker(s) (NONE = no marker)
% Format: ( inlet marker, total temperature, total pressure, flow_direction_x,
% flow_direction_y, flow_direction_z, ... ) where flow_direction is
% a unit vector.
MARKER_INLET= ( inlet, 300.0, 100000.0, 1.0, 0.0, 0.0 )
%
% Outlet boundary marker(s) (NONE = no marker)
% Format: ( outlet marker, back pressure (static), ... )
MARKER_OUTLET= ( outlet, 97250.0, farfield, 97250.0 )
%
% Marker(s) of the surface to be plotted or designed
MARKER_PLOTTING= ( wall )
%
% Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated
MARKER_MONITORING= ( wall )

% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
%
% Numerical method for spatial gradients (GREEN_GAUSS, WEIGHTED_LEAST_SQUARES)
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
%
% Courant-Friedrichs-Lewy condition of the finest grid
CFL_NUMBER= 10.0
%
% Adaptive CFL number (NO, YES)
CFL_ADAPT= YES
%
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
% CFL max value )
CFL_ADAPT_PARAM= ( 0.1, 2.0, 100.0, 1e10 )
%
% Number of total iterations
ITER= 9999

% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
%
% Linear solver for implicit formulations (BCGSTAB, FGMRES)
LINEAR_SOLVER= FGMRES
%
% Preconditioner of the Krylov linear solver (JACOBI, LINELET, LU_SGS)
LINEAR_SOLVER_PREC= ILU
%
% Minimum error of the linear solver for implicit formulations
LINEAR_SOLVER_ERROR= 1E-6
%
% Max number of iterations of the linear solver for the implicit formulation
LINEAR_SOLVER_ITER= 10

% -------------------------- MULTIGRID PARAMETERS -----------------------------%
%
% Multi-Grid Levels (0 = no multi-grid)
MGLEVEL= 0
%
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
MGCYCLE= W_CYCLE
%
% Multi-grid pre-smoothing level
MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
%
% Multi-grid post-smoothing level
MG_POST_SMOOTH= ( 0, 0, 0, 0 )
%
% Jacobi implicit smoothing of the correction
MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
%
% Damping factor for the residual restriction
MG_DAMP_RESTRICTION= 0.9
%
% Damping factor for the correction prolongation
MG_DAMP_PROLONGATION= 0.9

% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
%
% Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC,
% TURKEL_PREC, MSW)
CONV_NUM_METHOD_FLOW= ROE
%
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations.
% Required for 2nd order upwind schemes (NO, YES)
MUSCL_FLOW= YES
%
% Slope limiter (NONE, VENKATAKRISHNAN, VENKATAKRISHNAN_WANG,
% BARTH_JESPERSEN, VAN_ALBADA_EDGE)
SLOPE_LIMITER_FLOW= NONE
%
% Coefficient for the limiter (smooth regions)
VENKAT_LIMITER_COEFF= 0.05
%
% 2nd and 4th order artificial dissipation coefficients
JST_SENSOR_COEFF= ( 0.5, 0.02 )
%
% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
TIME_DISCRE_FLOW= EULER_IMPLICIT

% --------------------------- CONVERGENCE PARAMETERS --------------------------%
%
% Convergence criteria (CAUCHY, RESIDUAL)
CONV_FIELD= RMS_DENSITY
%
% Min value of the residual (log10 of the residual)
CONV_RESIDUAL_MINVAL= -12
%
% Start convergence criteria at iteration number
CONV_STARTITER= 10
%
% Number of elements to apply the criteria
CONV_CAUCHY_ELEMS= 100
%
% Epsilon to control the series convergence
CONV_CAUCHY_EPS= 1E-6

% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
%
% Mesh input file
MESH_FILENAME= mesh_flatplate_65x65.su2
%
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
MESH_FORMAT= SU2
%
% Mesh output file
MESH_OUT_FILENAME= mesh_out.su2
%
% Restart flow input file
SOLUTION_FILENAME= solution_flow.dat
%
% Restart adjoint input file
SOLUTION_ADJ_FILENAME= solution_adj.dat
%
% Output file format (PARAVIEW, TECPLOT, STL)
TABULAR_FORMAT= CSV
%
% Output file convergence history (w/o extension)
CONV_FILENAME= history
%
% Output file restart flow
RESTART_FILENAME= restart_flow.dat
%
% Output file restart adjoint
RESTART_ADJ_FILENAME= restart_adj.dat
%
% Output file flow (w/o extension) variables
VOLUME_FILENAME= flow
%
% Output file adjoint (w/o extension) variables
VOLUME_ADJ_FILENAME= adjoint
%
% Output objective function gradient (using continuous adjoint)
GRAD_OBJFUNC_FILENAME= of_grad.dat
%
% Output file surface flow coefficient (w/o extension)
SURFACE_FILENAME= surface_flow
%
% Output file surface adjoint coefficient (w/o extension)
SURFACE_ADJ_FILENAME= surface_adjoint
%
%
% Screen output
SCREEN_OUTPUT=(INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)


-------------------------------------------------------------------------------------
But the iterations is disordered. Just like "1 2 3 2 3 1 2 4 6", rather than "1 2 3 4 5 6 7 8"
Amber0922 is offline   Reply With Quote

Old   March 28, 2023, 05:27
Default
  #6
Member
 
PENG YAN
Join Date: Jul 2021
Location: Italy
Posts: 34
Rep Power: 5
PENGGEGE777 is on a distinguished road
Are you sure you are trying inviscid_bump tutorial?


From your config file, you are running the tutorial case: 'compressible flow/laminar flat plate'


Just go SU2 homepage:


https://su2code.github.io/tutorials/Laminar_Flat_Plate/


download the config file and mesh, it should work.


Make sure that you are using SU2_CFD from latest version of SU2. You can use command:


$ which SU2_CFD


for confirmation.
PENGGEGE777 is offline   Reply With Quote

Old   March 28, 2023, 06:03
Default
  #7
Member
 
Zhang
Join Date: Mar 2023
Posts: 72
Rep Power: 3
Amber0922 is on a distinguished road
Sorry, I'm confused. I have tried two tutorials and comes to the same questions. And I'm sure that I had installed the 7.5.1, but the iteration steps is disordered. And it shows

Error in "bool CFileWriter::OpenMPIFile(std::string)":
-------------------------------------------------------------------------
Unable to open file restart_flow.dat
------------------------------ Error Exit -------------------------------


-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
-------------------------------------------------------
Amber0922 is offline   Reply With Quote

Old   March 28, 2023, 06:21
Default
  #8
Member
 
PENG YAN
Join Date: Jul 2021
Location: Italy
Posts: 34
Rep Power: 5
PENGGEGE777 is on a distinguished road
Strange problem.


If you install SU2 correctly, you should not have this issue.


Try to remove SU2 and reinstall again.


Remember to update your bashrc file.


Or let us see whether other people have any idea about your issue.
PENGGEGE777 is offline   Reply With Quote

Old   March 29, 2023, 03:39
Default
  #9
Member
 
Zhang
Join Date: Mar 2023
Posts: 72
Rep Power: 3
Amber0922 is on a distinguished road
Quote:
Originally Posted by PENGGEGE777 View Post
Strange problem.


If you install SU2 correctly, you should not have this issue.


Try to remove SU2 and reinstall again.


Remember to update your bashrc file.


Or let us see whether other people have any idea about your issue.
I find the reason for this problem. Just delete the previous version, then it goes well.
Amber0922 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
different results form openfoam 3.0.1 to 1912 yuno OpenFOAM Running, Solving & CFD 0 September 28, 2020 04:09
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 16:53
[foam-extend.org] OpenFOAM-1.6-ext on Ubuntu 12.04 install errors benk OpenFOAM Installation 37 August 8, 2016 12:48
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 03:34


All times are GMT -4. The time now is 08:55.