Skip to content

Commit 733cc5b

Browse files
authored
Mg/default docs (#284)
1 parent e3fabf9 commit 733cc5b

File tree

2 files changed

+93
-2
lines changed

2 files changed

+93
-2
lines changed

default_templates/generic_fea.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@
449449
"params": {
450450
"HTML": "<h2>References</h2>",
451451
"properties": {
452-
"TOCItem": "1"
452+
"TOCItem": "1",
453+
"TOCLevel": "0"
453454
}
454455
},
455456
"sort_selection": "",
@@ -560,7 +561,7 @@
560561
"name": "Appendix-B",
561562
"report_type": "Layout:basic",
562563
"tags": "",
563-
"item_filter": "A|i_tags|cont|section=appendixA;",
564+
"item_filter": "A|i_tags|cont|section=appendixB;",
564565
"params": {
565566
"HTML": "<p>Appendix B</p>",
566567
"properties": {

default_templates/generic_fea.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Generic FEA report
2+
3+
Report template for a coupled Structural and Thermal analysis.
4+
5+
## Structure of the report
6+
7+
The generated report will have the following structure:
8+
9+
```text
10+
Report
11+
├── Image
12+
├── Header
13+
├── Report Title
14+
├── Executive Summary
15+
├── Table of Content
16+
├── Introduction
17+
│ ├── Background
18+
│ ├── Problem Statement
19+
│ ├── Objectives
20+
│ ├── Scope
21+
├── Methodology
22+
│ ├── Geometry and Mesh Generation
23+
│ ├── Material Properties
24+
│ ├── Structural Analysis
25+
│ ├── Thermal Analysis
26+
│ ├── Coupled Structural-Thermal Results
27+
├── Results
28+
│ ├── Structural Analysis Results
29+
│ ├── Thermal Analysis Results
30+
│ ├── Coupled Structural-Thermal Results
31+
├── Discussion
32+
│ ├── Structural Analysis Discussion
33+
│ ├── Thermal Analysis Discussion
34+
│ ├── Coupled Structural-Thermal Discussion
35+
├── References
36+
├── Conclusions
37+
│ ├── Summary
38+
│ ├── Recommendations
39+
├── Appendices
40+
│ ├── Appendix-A
41+
│ ├── Appendix-B
42+
```
43+
44+
You can add or modify the structure of the report by adding / removing / modifying the corresponding report templates.
45+
46+
## Filters
47+
48+
Each report section is populated with items from the database that pass the aggregated filters. You can modify these filters to fit your database.
49+
50+
At the top level, there is a filter for item tags containing the string 'projectA'. Only items that pass this filter will be added into the report.
51+
52+
The following tree displays the filter for each report leaf. The idea is to use item names and tags to place them in the correct section.
53+
54+
```text
55+
Report -> item tag contains "projectA"
56+
├── Image -> item tag contains "logo"
57+
├── Header -> NO ITEMS HERE. The text comes from the template HTML
58+
├── Report Title -> NO ITEMS HERE. The title comes from the template HTML
59+
├── Executive Summary -> item name contains "overview"
60+
├── Table of Content -> NO ITEMS HERE. Automatically generated
61+
├── Introduction
62+
│ ├── Background -> item tags contain "section=background"
63+
│ ├── Problem Statement -> item tags contain "section=problem"
64+
│ ├── Objectives -> item tags contain "section=objectives"
65+
│ ├── Scope -> item tags contain "section=scope"
66+
├── Methodology -> item tags contain "chapter=methodology"
67+
│ ├── Geometry and Mesh Generation -> item tags contain "section=mesh"
68+
│ ├── Material Properties -> item tags contain "section=materials"
69+
│ ├── Structural Analysis -> item tags contain "section=structural"
70+
│ ├── Thermal Analysis -> item tags contain "section=thermal"
71+
│ ├── Coupled Structural-Thermal Results -> item tags contain "section=coupled"
72+
├── Results -> item tags contain "chapter=results"
73+
│ ├── Structural Analysis Results -> item tags contain "section=structural"
74+
│ ├── Thermal Analysis Results -> item tags contain "section=thermal"
75+
│ ├── Coupled Structural-Thermal Results -> item tags contain "section=coupled"
76+
├── Discussion -> item tags contain "chapter=discussion"
77+
│ ├── Structural Analysis Discussion -> item tags contain "section=structural"
78+
│ ├── Thermal Analysis Discussion -> item tags contain "section=thermal"
79+
│ ├── Coupled Structural-Thermal Discussion -> item tags contain "section=coupled"
80+
├── References -> item name contain "chapter=references"
81+
├── Conclusions-> item tags contain "chapter=conclusions"
82+
│ ├── Summary -> item tags contain "session=summary"
83+
│ ├── Recommendations -> item tags contain "session=recommendations"
84+
├── Appendices -> item name contain "chapter=appendices"
85+
│ ├── Appendix-A -> item tags contain "session=appendixA"
86+
│ ├── Appendix-B -> item tags contain "session=appendixB"
87+
```
88+
89+
90+
Please remember that for each leaf, you need to take into account all the filters of its parent. So for example for an item to be displayed in the "Geometry and Mesh Generation" section of the "Methodology" chapter, it will need to have tags that contain "projectA" AND tags that contain "chapter=methodology" AND tags that contain "section=mesh".

0 commit comments

Comments
 (0)