Skip to content

Commit 3a16a59

Browse files
authored
Merge branch 'main' into DPF_261/daily_doc_update
2 parents e317036 + adaa9b9 commit 3a16a59

File tree

6,376 files changed

+131234
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,376 files changed

+131234
-34
lines changed

2025R2/dpf-framework-25-r2/changelog/changelog-25-r2.md renamed to 2025R2/dpf-framework-25-r2/changelog/changelog.md

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
11
# Changelog
22

3-
This changelog is organized by category, with sections for new features, changes, fixes, and performance improvements. The following table shows which components have updates in each category.
4-
5-
| Component | Features | Changes | Fixes | Performance |
6-
|-----------|----------|---------|-------|-------------|
7-
| Framework |[15 items](#features_framework) |[4 items](#changes_framework) |[33 items](#fixes_framework) |[9 items](#performance_framework) |
8-
| HGP |[4 items](#features_hgp) |[1 item](#changes_hgp) |[6 items](#fixes_hgp) |[2 items](#performance_hgp) |
9-
| MAPDL |[11 items](#features_mapdl) |[3 items](#changes_mapdl) |[29 items](#fixes_mapdl) |[3 items](#performance_mapdl) |
10-
| LSDYNA |[2 items](#features_lsdyna) |[2 items](#changes_lsdyna) |[8 items](#fixes_lsdyna) ||
11-
| Math |[1 item](#features_math) |[2 items](#changes_math) |[1 item](#fixes_math) ||
12-
| HDF5 |[3 items](#features_hdf5) |[1 item](#changes_hdf5) |[8 items](#fixes_hdf5) ||
13-
| CFF ||[1 item](#changes_cff) |[2 items](#fixes_cff) ||
14-
| Compression |[1 item](#features_compression) |||[1 item](#performance_compression) |
15-
| Documentation |[1 item](#features_documentation) ||||
16-
| Motion |[1 item](#features_motion) ||||
17-
| CGNS |[1 item](#features_cgns) ||||
18-
| Engineering Data ||[1 item](#changes_engineering_data) |||
19-
| VTK |||[1 item](#fixes_vtk) ||
20-
21-
**Legend:**
22-
23-
- ✅ = Updates available in this category
24-
- ❌ = No updates in this category
25-
- Numbers in brackets indicate the count of items in each section
3+
This changelog is organized by category, with sections for new features, changes, fixes, and performance improvements.
264

275
## Table of contents
6+
287
### Features categories
8+
299
* [Framework](#features_framework)
3010
* [HGP](#features_hgp)
3111
* [MAPDL](#features_mapdl)
@@ -38,6 +18,7 @@ This changelog is organized by category, with sections for new features, changes
3818
* [CGNS](#features_cgns)
3919

4020
### Changes categories
21+
4122
* [Framework](#changes_framework)
4223
* [HGP](#changes_hgp)
4324
* [MAPDL](#changes_mapdl)
@@ -48,6 +29,7 @@ This changelog is organized by category, with sections for new features, changes
4829
* [Engineering Data](#changes_engineering_data)
4930

5031
### Fixes categories
32+
5133
* [Framework](#fixes_framework)
5234
* [HGP](#fixes_hgp)
5335
* [MAPDL](#fixes_mapdl)
@@ -58,6 +40,7 @@ This changelog is organized by category, with sections for new features, changes
5840
* [VTK](#fixes_vtk)
5941

6042
### Performance improvements categories
43+
6144
* [Framework](#performance_framework)
6245
* [HGP](#performance_hgp)
6346
* [MAPDL](#performance_mapdl)

2025R2/dpf-framework-25-r2/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,4 +1809,4 @@
18091809
- name: weighted merge fields by label
18101810
href: operator-specifications/utility/weighted_merge_fields_by_label.md
18111811
- name: Changelog
1812-
href: changelog/changelog-25-r2.md
1812+
href: changelog/changelog.md

2025R2/dpf-framework-25-r2/user-guide/dpf-docs-local-preview.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This guide shows you how to create your own local copy of the DPF Framework docu
1818
This step-by-step guide walks you through:
1919

2020
- How to use basic command-line tools.
21-
- How to create a local website to view your custom documentation.
21+
- How to create a local website to view your DPF Framework HTML documentation.
2222
- How to update the "Operator specifications" section of your documentation based on a custom DPF installation.
2323

2424
## About the command line
@@ -42,7 +42,8 @@ This guide uses the **command line** (also called terminal or PowerShell on Wind
4242
Create a local website to view DPF Framework documentation in a user-friendly format (like a regular website with navigation and search).
4343
The DPF Framework documentation includes both general reference material and the DPF operators documentation.
4444

45-
You first get the sources for the official documentation at https://github.com/ansys/DevRelDocs, then update them locally, and generate a local website.
45+
First, install the DocFX website builder. Next, clone the official documentation source from [github.com/ansys/DevRelDocs](https://github.com/ansys/DevRelDocs). Use DocFX to generate a local version of the website.
46+
4647

4748
### Step 1: Install the website builder (DocFX)
4849

@@ -150,7 +151,7 @@ Download and install the latest stable version of Python from the https://www.py
150151

151152
If you want to use older versions of Python, the minimum version supported by ansys-dpf-core is 3.10.
152153

153-
1. **Test your Python installation** by typing:
154+
**Test your Python installation** by typing:
154155

155156
```powershell
156157
python --version
@@ -217,19 +218,18 @@ You need to install the DPF server software. Select the installation method that
217218
$env:ANSYS_DPF_ACCEPT_LA = "Y"
218219
```
219220

220-
1. **Set your license server** by typing:
221+
2. **Set your license server** by typing:
221222

222223
```powershell
223224
$env:ANSYSLMD_LICENSE_FILE = "1055@your-license-address"
224225
```
225226

226227
**What these do:** Configure DPF to work with your license and permissions. See [Licensing](../getting-started/licensing.md) section for more information.
227228

228-
### Step 4: Update the DPF operators documentation
229+
### Step 3: Update the DPF operators documentation
229230

230231
Next, generate the DPF operators Markdown documentation files. Choose the option that fits your needs.
231232

232-
233233
**Update the current documentation with the default DPF installation:**
234234

235235
Move to the root folder of the ``dpf-framework`` documentation downloaded in section ``Create your DPF Framework HTML documentation``, step ``Get the DPF Framework documentation source files``.
@@ -278,7 +278,7 @@ Generate the output files for all operators including private operators with the
278278
dpf_generate_operators_doc.exe --include_private
279279
```
280280

281-
#### Optional: Document composites operators
281+
#### Optional: Document Composites operators
282282

283283
Generate the output files for all operators including operators of the ``Composites`` DPF plugin with the ``--include_composites`` command argument:
284284

@@ -289,7 +289,7 @@ dpf_generate_operators_doc.exe --include_composites
289289
This is useful for installations where the ``Composites`` plugin is present but not loaded by default.
290290
This tells the script to try and load the plugin when starting DPF.
291291

292-
#### Optional: Document composites operators
292+
#### Optional: Document Sound operators
293293

294294
Generate the output files for all operators including operators of the ``Sound`` DPF plugin with the ``--include_sound`` command argument:
295295

@@ -330,9 +330,9 @@ dpf_generate_operators_doc.exe --plugin "mesh"
330330

331331
**What this does:** Creates documentation only for the specified plugin.
332332

333-
### Step 5: Rebuild the documentation
333+
### Step 4: Rebuild the documentation
334334

335-
Refer to the previous main section "Create your DPF Framework HTML documentation" and "Step 3: Generate a local website" to update the HTML documentation with the new content for DPF operators.
335+
Refer to the previous main section [Create your DPF Framework HTML documentation](#create-your-dpf-framework-html-documentation) and **Step 3: Generate a local website** to update the HTML documentation with the new content for DPF operators.
336336

337337
## Troubleshooting
338338

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
import os
2+
import sys
3+
import argparse
4+
5+
6+
def remove_column_table(input_table):
7+
# Split input table into rows
8+
rows = input_table.strip().split('\n')
9+
10+
# Create a new array for modified table
11+
modified_rows = []
12+
13+
# Add the new header row
14+
modified_rows.append("| Name |")
15+
16+
# invert row[0] and row[1]
17+
temp = rows[0]
18+
rows[0] = rows[1]
19+
rows[1] = temp
20+
21+
22+
# Skip the second row of the original table
23+
# We don't include it in the modified table
24+
25+
# Add remaining rows from the original table, starting from index 2
26+
for i in range(0, len(rows)):
27+
# Split the current row by the '|' character
28+
columns = rows[i].strip().split('|')
29+
30+
# Extract the content of the first column
31+
name_column = columns[1].strip()
32+
33+
# Add the content of the first column to the modified row
34+
modified_rows.append("| " + name_column + " |")
35+
36+
# Construct the modified table string
37+
modified_table = '\n'.join(modified_rows)
38+
39+
return modified_table
40+
41+
def process_md_table(input_table):
42+
# Split input table into rows
43+
rows = input_table.strip().split('\n')
44+
45+
# Create a new array for modified table
46+
modified_rows = ["| Name | Description |"]
47+
48+
# Add the second row of the original table
49+
modified_rows.append(rows[1])
50+
51+
# Add the first row of the original table
52+
modified_rows.append(rows[0])
53+
54+
# Add remaining rows from the original table, starting from index 2
55+
for i in range(2, len(rows)):
56+
modified_rows.append(rows[i])
57+
58+
# Construct the modified table string
59+
modified_table = '\n'.join(modified_rows)
60+
61+
return modified_table
62+
63+
def process_md_files(folder_path):
64+
# Traverse the directory structure recursively
65+
for root, dirs, files in os.walk(folder_path):
66+
for file in files:
67+
# Check if the file is a Markdown file
68+
if file.endswith(".md"):
69+
file_path = os.path.join(root, file)
70+
print("Processing:", file_path)
71+
# Read the input file
72+
with open(file_path, 'r', encoding='utf-8') as file:
73+
file_content = file.read()
74+
75+
# Split the file content by at least one newline character
76+
tables = file_content.split('\n\n')
77+
78+
# Process each potential Markdown table found in the file
79+
modified_tables = []
80+
81+
# Check if all items of column 2 are empty
82+
for table in tables:
83+
# Check if the potential table is actually a Markdown table
84+
if table.strip().startswith('|'):
85+
# Check if the table has two columns with an empty column (first row only)
86+
rows = table.strip().split('\n')
87+
is2ColumnTable = False
88+
for i in range(0, len(rows)):
89+
if i==1:
90+
continue
91+
if rows[i].count('|') == 3:
92+
s = rows[i].split('|')[2]
93+
if all(char.isspace() or char == '\t' for char in s):
94+
print("Found 1 column table")
95+
else:
96+
print("Found 2 column table")
97+
is2ColumnTable = True
98+
99+
if rows[0].count('|') > 3:
100+
print("Found >2 column table")
101+
elif is2ColumnTable == True:
102+
# Process the MD table
103+
modified_table = process_md_table(table)
104+
elif is2ColumnTable == False:
105+
# Remove the empty column from the table
106+
modified_table = remove_column_table(table)
107+
else:
108+
modified_table = table
109+
110+
modified_tables.append(modified_table)
111+
112+
# Join the modified tables back into the file content
113+
modified_content = '\n\n'.join(modified_tables)
114+
115+
# Write the modified content back to the input file
116+
with open(file_path, 'w', encoding='utf-8') as file:
117+
file.write(modified_content)
118+
119+
print("File '{}' has been updated with corrected tables.".format(file_path))
120+
121+
if __name__ == "__main__":
122+
# Check if the folder path is provided
123+
124+
125+
# Get the folder path from command line argument
126+
#folder_path = sys.argv[1]
127+
128+
parser = argparse.ArgumentParser(description="Add headers to tables in Markdown files.")
129+
parser.add_argument("--input_folder", help="Path to the folder of Markdown files")
130+
args = parser.parse_args()
131+
132+
folder_path = args.input_folder
133+
134+
# Process all Markdown files in the folder and its subfolders
135+
process_md_files(folder_path)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ansys.meshing.prime.AddLabelResults.error_code
2+
3+
<a id="ansys.meshing.prime.AddLabelResults.error_code"></a>
4+
5+
#### *property* AddLabelResults.error_code *: [ErrorCode](ansys.meshing.prime.ErrorCode.md#ansys.meshing.prime.ErrorCode)*
6+
7+
Error code associated with the add label operation.
8+
9+
<!-- !! processed by numpydoc !! -->
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!-- vale off -->
2+
3+
<a id="addlabelresults"></a>
4+
5+
# AddLabelResults
6+
7+
<a id="ansys.meshing.prime.AddLabelResults"></a>
8+
9+
### *class* ansys.meshing.prime.AddLabelResults(model=None, error_code=None, json_data=None, \*\*kwargs)
10+
11+
Results associated with the add label operation.
12+
13+
* **Parameters:**
14+
15+
**model: Model**
16+
: Model to create a `AddLabelResults` object with default parameters.
17+
18+
**error_code: ErrorCode, optional**
19+
: Error code associated with the add label operation.
20+
21+
**json_data: dict, optional**
22+
: JSON dictionary to create a `AddLabelResults` object with provided parameters.
23+
24+
### Examples
25+
26+
```pycon
27+
>>> add_label_results = prime.AddLabelResults(model = model)
28+
```
29+
30+
<!-- !! processed by numpydoc !! -->
31+
32+
### Methods
33+
34+
| Name | Description |
35+
|---------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
36+
| [`AddLabelResults.print_default`](ansys.meshing.prime.AddLabelResults.print_default.md#ansys.meshing.prime.AddLabelResults.print_default)() | Print the default values of `AddLabelResults` object. |
37+
| [`AddLabelResults.set_default`](ansys.meshing.prime.AddLabelResults.set_default.md#ansys.meshing.prime.AddLabelResults.set_default)([error_code]) | Set the default values of the `AddLabelResults` object. |
38+
39+
### Attributes
40+
41+
| Name | Description |
42+
|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
43+
| [`AddLabelResults.error_code`](ansys.meshing.prime.AddLabelResults.error_code.md#ansys.meshing.prime.AddLabelResults.error_code) | Error code associated with the add label operation. |
44+
<!-- vale on -->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# print_default
2+
3+
<a id="ansys.meshing.prime.AddLabelResults.print_default"></a>
4+
5+
#### *static* AddLabelResults.print_default()
6+
7+
Print the default values of `AddLabelResults` object.
8+
9+
### Examples
10+
11+
```pycon
12+
>>> AddLabelResults.print_default()
13+
```
14+
15+
<!-- !! processed by numpydoc !! -->
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# set_default
2+
3+
<a id="ansys.meshing.prime.AddLabelResults.set_default"></a>
4+
5+
#### *static* AddLabelResults.set_default(error_code=None)
6+
7+
Set the default values of the `AddLabelResults` object.
8+
9+
* **Parameters:**
10+
11+
**error_code: ErrorCode, optional**
12+
: Error code associated with the add label operation.
13+
14+
<!-- !! processed by numpydoc !! -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# ansys.meshing.prime.AddThicknessParams.fix_intersections
2+
3+
<a id="ansys.meshing.prime.AddThicknessParams.fix_intersections"></a>
4+
5+
#### *property* AddThicknessParams.fix_intersections *: [bool](https://docs.python.org/3.11/library/functions.html#bool)*
6+
7+
Fix intersections in concave regions.
8+
9+
<!-- !! processed by numpydoc !! -->

0 commit comments

Comments
 (0)