Skip to content

Commit

Permalink
fix: Remove eval: false
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroFernandezLuces committed Oct 7, 2024
1 parent 44ab2e4 commit 3994901
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions doc/source/cheatsheet/cheat_sheet.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jupyter:
Launch and exit PyPrimeMesh server from Python in gRPC
mode:
```{python}
#| eval: false
# Launch PyPrimeMesh server
from ansys.meshing import prime
Expand All @@ -50,7 +49,6 @@ with prime.launch_prime(timeout=20) as prime_client:
Launch an instance of PyPrimeMesh at IP address 127.0.0.1
and port 50055 with the number of processes set to 4:
```{python}
#| eval: false
with prime.launch_prime(
ip="127.0.0.1", port=50055, n_procs=4
) as prime_client:
Expand All @@ -62,7 +60,6 @@ Read or write files of different formats based on file
extensions:

```{python}
#| eval: false
from ansys.meshing.prime import lucid
# Define \texttt{mesher} object
Expand All @@ -79,7 +76,6 @@ mesher.write(cdb_file_name)
Query for the part summary:

```{python}
#| eval: false
part = model.get_part_by_name("sample_part")
summary = part.get_summary(prime.PartSummaryParams(
model))
Expand All @@ -90,7 +86,6 @@ print("Total number of cells: ", summary.n_cells)
Set global sizing parameters:

```{python}
#| eval: false
model.set_global_sizing_params(
prime.GlobalSizingParams(min=0.5, max=16.0,
growth_rate=1.2)
Expand All @@ -99,7 +94,6 @@ model.set_global_sizing_params(

Define the curvature size control:
```{python}
#| eval: false
curvature_control = model.control_data.create_size_control(
prime.SizingType.CURVATURE
)
Expand All @@ -120,7 +114,6 @@ curvature_control.set_curvature_sizing_params(
## Generate wrapper surface mesh
Generate the wrapper surface mesh:
```{python}
#| eval: false
mesher.wrap(
min_size=0.5,
max_size=16,
Expand All @@ -134,7 +127,6 @@ Generate the surface mesh based on specified minimum and
maximum sizes:

```{python}
#| eval: false
mesher.surface_mesh(
min_size=0.5,
max_size=16,
Expand All @@ -144,7 +136,6 @@ mesher.surface_mesh(

Generate the surface mesh based on size controls:
```{python}
#| eval: false
control_name = "Curvature_Size_Control"
mesher.surface_mesh_with_size_controls(
control_name,
Expand All @@ -154,7 +145,6 @@ mesher.surface_mesh_with_size_controls(
Generate surface mesh diagnostics:

```{python}
#| eval: false
surface_scope = prime.ScopeDefinition(model, part_expression="*")
diag = prime.SurfaceSearch(model)
diag_prms = prime.SurfaceDiagnosticSummaryParams(
Expand All @@ -170,7 +160,6 @@ print("Number of free edges : ", diag_res.n_free_edges)
Generate surface mesh quality metrics:

```{python}
#| eval: false
face_quality_measures = prime.FaceQualityMeasure.SKEWNESS
quality = prime.SurfaceSearch(model)
quality_params = prime.SurfaceQualitySummaryParams(
Expand All @@ -191,7 +180,6 @@ print(
## Generate volume mesh
Generate a volume mesh:
```{python}
#| eval: false
volume_fill_type = prime.VolumeFillType.HEXCOREPOLY
mesher.volume_mesh(
volume_fill_type=volume_fill_type,
Expand Down

0 comments on commit 3994901

Please sign in to comment.