Skip to content

Commit

Permalink
number formatting and SU2 config
Browse files Browse the repository at this point in the history
  • Loading branch information
GBenedett committed Oct 24, 2024
1 parent 96c9d47 commit 74984c1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ceasiompy/CPACS2GMSH/__specs__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion ceasiompy/SU2Run/__specs__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions ceasiompy/SU2Run/files/config_template_rans.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------%
%
Expand Down
4 changes: 2 additions & 2 deletions ceasiompy/SU2Run/func/su2config_rans.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
)
Expand Down
2 changes: 1 addition & 1 deletion src/streamlit/pages/02_⚙️_Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 74984c1

Please sign in to comment.