Skip to content

Commit 95b4194

Browse files
committed
fmk - removing check mark char from print in advancedCFDWithBRAILS.py
1 parent 9e6622e commit 95b4194

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

modules/createEVENT/advancedCFDWithBRAILS/community_wind_simulation.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ def create_profile_txt(n_profile: int, profile_out: Path) -> None:
13521352

13531353
out_path = profile_out.parent / f"Profile{i}"
13541354
out_path.write_text(profile_text)
1355-
print(f" Profile written to {out_path.resolve()}")
1355+
print(f" Profile written to {out_path.resolve()}")
13561356

13571357
def create_plane_txt(N_plane: int, plane_out: Path) -> None:
13581358
for i in range(1, N_plane+1):
@@ -1380,7 +1380,7 @@ def create_plane_txt(N_plane: int, plane_out: Path) -> None:
13801380

13811381
out_path = plane_out.parent / f"Plane{i}"
13821382
out_path.write_text(plane_text)
1383-
print(f" Plane written to {out_path.resolve()}")
1383+
print(f" Plane written to {out_path.resolve()}")
13841384

13851385
# ───────────────────────── Check if the path existss ─────────────────────────
13861386

@@ -1513,7 +1513,7 @@ def main(config: Dict[str, Any]) -> None:
15131513
Tfootprints = Scraper({"length": "m"}).get_footprints(regionT)
15141514

15151515
Tfootprints.write_to_geojson(out_path)
1516-
print(f" GeoJSON written to {out_path.resolve()}")
1516+
print(f" GeoJSON written to {out_path.resolve()}")
15171517

15181518

15191519

@@ -1529,7 +1529,7 @@ def main(config: Dict[str, Any]) -> None:
15291529
inventory = scraper.get_footprints(regionR)
15301530
inventory.write_to_geojson(out_file)
15311531

1532-
print(f" Footprints saved to {out_file.resolve()}")
1532+
print(f" Footprints saved to {out_file.resolve()}")
15331533

15341534
full = out_path
15351535
roi = out_file
@@ -1631,7 +1631,7 @@ def mesh(gdf):
16311631
return m
16321632
write_stl_ascii(mesh(gdf_roi), roi_stl, "ROI")
16331633
write_stl_ascii(mesh(rest), rest_stl, "Surrounding")
1634-
print(" STL files created.")
1634+
print(" STL files created.")
16351635

16361636
# --- compute bounds ---------------------------------------------------
16371637
verts=np.vstack([trimesh.load_mesh(str(roi_stl)).vertices,
@@ -1665,7 +1665,7 @@ def mesh(gdf):
16651665
write_bmd(x0,x1,y0,y1,z0,z1,nx,ny,nz,side_choice,
16661666
case/"system"/"blockMeshDict")
16671667

1668-
print(" blockMeshDict written.")
1668+
print(" blockMeshDict written.")
16691669
print(f"Applied rotation −{angle_deg}° so wind aligns with +x.")
16701670
print(f"Extents: ({x0},{y0},{z0}) to ({x1},{y1},{z1})")
16711671
# ───────────────────────── Write snappyHexMesh ─────────────────────────
@@ -1768,7 +1768,7 @@ def mesh(gdf):
17681768

17691769
Path(case/"system"/"snappyHexMeshDict").write_text(dict_text)
17701770
Path(case/"system"/"surfaceFeaturesDict").write_text(TP_surfFeat)
1771-
print(f" snappyHexMeshDict written to {Path(case/"system"/"snappyHexMeshDict").resolve()}")
1771+
print(f" snappyHexMeshDict written to {Path(case/"system"/"snappyHexMeshDict").resolve()}")
17721772
print(f" ROI surface level : {roi_level}")
17731773
print(f" Surrounding surface level: {sur_level}")
17741774

@@ -1825,7 +1825,7 @@ def mesh(gdf):
18251825
raise ValueError("Uref, Href, z0 must be floats")
18261826

18271827
else:
1828-
print(" constant/transportProperties written.")
1828+
print(" constant/transportProperties written.")
18291829
while True:
18301830
fw = input("Framework? [RANS / LES]: ").strip().lower()
18311831
if fw in ("rans", "les"):
@@ -1878,7 +1878,7 @@ def mesh(gdf):
18781878
# write turbulenceProperties
18791879
fld2.parent.mkdir(parents=True, exist_ok=True)
18801880
fld2.write_text(TP_LES)
1881-
print(" turbulenceProperties (LES) written.")
1881+
print(" turbulenceProperties (LES) written.")
18821882

18831883
fld1 = Path(case/"0")
18841884
fld1.mkdir(parents=True, exist_ok=True)
@@ -1897,15 +1897,15 @@ def mesh(gdf):
18971897
P_BODY % (SIDE_MAP[side], SIDE_MAP[side])
18981898
)
18991899

1900-
print(f" fields written to {fld1.resolve()}")
1900+
print(f" fields written to {fld1.resolve()}")
19011901
#return # LES path ends here
19021902

19031903
else:
19041904

19051905
# ───────────── RANS branch ─────────────
19061906
fld2.parent.mkdir(parents=True, exist_ok=True)
19071907
fld2.write_text(TP_RANS)
1908-
print(" turbulenceProperties (RANS) written.")
1908+
print(" turbulenceProperties (RANS) written.")
19091909

19101910
fld1 = Path(case/"0")
19111911
fld1.mkdir(parents=True, exist_ok=True)
@@ -1926,7 +1926,7 @@ def mesh(gdf):
19261926
P_BODY % (SIDE_MAP[side], SIDE_MAP[side])
19271927
)
19281928

1929-
print(f" fields written to {fld1.resolve()}")
1929+
print(f" fields written to {fld1.resolve()}")
19301930

19311931

19321932
# ───────────────────────── Inputs for ControlDict ─────────────────────────
@@ -1989,7 +1989,7 @@ def mesh(gdf):
19891989
Path(case/"system"/"fvSolution").write_text(TP_fvSol_LES)
19901990
Path(case/"system"/"fvSchemes").parent.mkdir(parents=True, exist_ok=True)
19911991
Path(case/"system"/"fvSchemes").write_text(TP_fvSch_LES)
1992-
print(f" system/controlDict written to {Path(case/"system"/"controlDict").resolve()}")
1992+
print(f" system/controlDict written to {Path(case/"system"/"controlDict").resolve()}")
19931993
# write profile and plane recorder
19941994
create_profile_txt(n_profile, Path(case/"system"/"Profile"))
19951995
create_plane_txt(n_plane, Path(case/"system"/"Plane"))
@@ -2027,7 +2027,7 @@ def mesh(gdf):
20272027
Path(case/"system"/"fvSolution").write_text(TP_fvSol_RANS)
20282028
Path(case/"system"/"fvSchemes").parent.mkdir(parents=True, exist_ok=True)
20292029
Path(case/"system"/"fvSchemes").write_text(TP_fvSch_RANS)
2030-
print(f" system/controlDict written to {Path(case/"system"/"controlDict").resolve()}")
2030+
print(f" system/controlDict written to {Path(case/"system"/"controlDict").resolve()}")
20312031

20322032

20332033
if 'number_of_processors' in config:
@@ -2073,7 +2073,7 @@ class dictionary;
20732073
outd = Path(case/"system"/"decomposeParDict")
20742074
outd.parent.mkdir(parents=True, exist_ok=True)
20752075
outd.write_text(DECOMP)
2076-
print(f" decomposeParDict written to {outd.resolve()}")
2076+
print(f" decomposeParDict written to {outd.resolve()}")
20772077
print(f" ( {nproc} subdomains, method = scotch )")
20782078

20792079
# ───────────────────────── Get TINF file ─────────────────────────
@@ -2134,21 +2134,21 @@ def write_list(path: Path, iterable, fmt):
21342134
else:
21352135
f.write(f"(0 0 {z:g})\n")
21362136
f.write(")\n;\n")
2137-
print(f" points → {pts_out.resolve()}")
2137+
print(f" points → {pts_out.resolve()}")
21382138

21392139
# U
21402140
write_list(u_out, u_vals, lambda u: f"{u:g}")
2141-
print(f" U → {u_out.resolve()}")
2141+
print(f" U → {u_out.resolve()}")
21422142

21432143
# R
21442144
write_list(r_out, r_vals.itertuples(index=False),
21452145
lambda row: "(" + " ".join(f"{v:g}" for v in row) + ")")
2146-
print(f" R → {r_out.resolve()}")
2146+
print(f" R → {r_out.resolve()}")
21472147

21482148
# L
21492149
write_list(l_out, l_vals.itertuples(index=False),
21502150
lambda row: "(" + " ".join(f"{v:g}" for v in row) + ")")
2151-
print(f" L → {l_out.resolve()}")
2151+
print(f" L → {l_out.resolve()}")
21522152

21532153
Path(case/"Community.foam").touch()
21542154

0 commit comments

Comments
 (0)