diff --git a/ceasiompy/CPACS2GMSH/__specs__.py b/ceasiompy/CPACS2GMSH/__specs__.py index 879e80d3a..413b5f924 100644 --- a/ceasiompy/CPACS2GMSH/__specs__.py +++ b/ceasiompy/CPACS2GMSH/__specs__.py @@ -222,7 +222,7 @@ var_name="max_surface_mesh_factor", var_type=float, default_value=0.1, - unit="[10^-3]", + unit="[-]", descr="Maximum surface mesh size factor", xpath=MAX_GMSH_SURFACE_MESH_SIZE_XPATH, gui=True, @@ -234,7 +234,7 @@ var_name="min_surface_mesh_factor", var_type=float, default_value=0.01, - unit="[10^-3]", + unit="[-]", descr="Minimum surface mesh size factor", xpath=MIN_GMSH_SURFACE_MESH_SIZE_XPATH, gui=True, diff --git a/ceasiompy/SU2Run/__specs__.py b/ceasiompy/SU2Run/__specs__.py index 8a009fae7..c0c866385 100644 --- a/ceasiompy/SU2Run/__specs__.py +++ b/ceasiompy/SU2Run/__specs__.py @@ -303,7 +303,7 @@ cpacs_inout.add_input( var_name="mg_level", var_type=int, - default_value=3, + default_value=0, unit="3", descr="Multi-grid level (0 = no multigrid)", xpath=SU2_MG_LEVEL_XPATH, diff --git a/ceasiompy/SU2Run/files/config_template_rans.cfg b/ceasiompy/SU2Run/files/config_template_rans.cfg index 1af0ceee0..6d5437f6f 100644 --- a/ceasiompy/SU2Run/files/config_template_rans.cfg +++ b/ceasiompy/SU2Run/files/config_template_rans.cfg @@ -56,19 +56,19 @@ REF_DIMENSIONALIZATION= FREESTREAM_PRESS_EQ_ONE % % ----------------------- BOUNDARY CONDITION DEFINITION -----------------------% % -MARKER_HEATFLUX = (S4CreatedbyGmsh, 0.0) +MARKER_HEATFLUX = (CreatedbyGmsh, 0.0) % -MARKER_FAR= (S3Farfield) +MARKER_FAR= (Farfield) % %MARKER_SYM =() % % ------------------------ SURFACES IDENTIFICATION ----------------------------% % % Marker(s) of the surface to be plotted or designed -MARKER_PLOTTING= (S4CreatedbyGmsh) +MARKER_PLOTTING= (CreatedbyGmsh) % % Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated -MARKER_MONITORING= (S4CreatedbyGmsh) +MARKER_MONITORING= (CreatedbyGmsh) % ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------% % diff --git a/ceasiompy/SU2Run/func/su2config_rans.py b/ceasiompy/SU2Run/func/su2config_rans.py index 77b6bbeb6..f0403c91e 100644 --- a/ceasiompy/SU2Run/func/su2config_rans.py +++ b/ceasiompy/SU2Run/func/su2config_rans.py @@ -322,7 +322,6 @@ def add_thermodata(cfg, cpacs, alt, case_nb, alt_list): def add_reynods_number(alt, mach, cfg, cpacs_path): - Atm = Atmosphere(alt) # Get speed from Mach Number @@ -474,8 +473,9 @@ def generate_su2_cfd_config_rans(cpacs_path, cpacs_out_path, wkdir): # Mesh Marker bc_wall_str = f"( {','.join(mesh_markers['wall'])} )" + bc_wall_str = bc_wall_str.replace(" ", "") - cfg["MARKER_EULER"] = bc_wall_str + # cfg["MARKER_EULER"] = bc_wall_str farfield_bc = ( mesh_markers["farfield"] + mesh_markers["engine_intake"] + mesh_markers["engine_exhaust"] ) diff --git "a/src/streamlit/pages/02_\342\232\231\357\270\217_Settings.py" "b/src/streamlit/pages/02_\342\232\231\357\270\217_Settings.py" index e9f74ed04..a914d34dc 100644 --- "a/src/streamlit/pages/02_\342\232\231\357\270\217_Settings.py" +++ "b/src/streamlit/pages/02_\342\232\231\357\270\217_Settings.py" @@ -392,7 +392,7 @@ def add_module_tab(): value=get_value_or_default( st.session_state.cpacs.tixi, xpath, default_value ), - format="%0.3f", + format="%g", key=key, help=description, )