Skip to content
Snippets Groups Projects
Commit a735bdf5 authored by Alain Schubiger's avatar Alain Schubiger
Browse files

reformated

parent 46799c46
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,7 @@ terrain = wu.filter_domain(terrain, config['site']['center'].values(), config['s
dZ = np.nanmax(terrain['z']) - np.nanmin(terrain['z'])
Re = wu.get_Re(config, dZ)
print(f'Re = {int(Re)}')
# get first element height
h_0 = wu.get_first_element_height_by_yplus(u_ref, rho, nu, dZ, 75)
......@@ -52,9 +53,8 @@ if config['options']['do_stl']:
if config['options']['do_mesh']:
print('Creating Mesh')
wpw.create_structured_mesh(Path.cwd() / 'simulation' / 'stl' / 'terrain.stl', nx=nx, nz=nz, nspokes=24, num_seg=12,
d_h=1, h_min=1500, solve_doms=True,
path=r'D:\home\aschubig\terrain.cas')
# wpw.create_structured_mesh(Path.cwd() / 'simulation' / 'stl' / 'terrain_minimised.stl')
d_h=1, h_min=1500, solve_doms=True) # ,
# path=r'D:\home\aschubig\terrain.cas')
# read terrain data
if config['options']['do_z0']:
......@@ -63,7 +63,7 @@ if config['options']['do_z0']:
roughness = wu.filter_domain(roughness, config['site']['center'].values(), config['site']['domain_radius'])
if roughness.iloc[:, 2].mean() > 100:
# convert clc to z0
# convert clc to z0
roughness.iloc[:, 2] = roughness.iloc[:, 2].map(lambda x: wu.clc_index_to_z0(x))
# convert z0 to ks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment