TUT: motorBike - added example for foamReport
This commit is contained in:
parent
dffb5774d5
commit
cddfe0e324
@ -54,6 +54,7 @@ functions
|
||||
|
||||
#include "solverInfo"
|
||||
#include "graphFunctionObject"
|
||||
#include "foamReport"
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,59 @@
|
||||
foamReport1
|
||||
{
|
||||
type foamReport;
|
||||
libs (utilityFunctionObjects);
|
||||
|
||||
writeControl writeTime;
|
||||
|
||||
template "<system>/myReportTemplate.md";
|
||||
|
||||
substitutions
|
||||
{
|
||||
timing1
|
||||
{
|
||||
type fileRegEx;
|
||||
path "log.simpleFoam";
|
||||
|
||||
entries
|
||||
{
|
||||
executionTime "ExecutionTime = (.*) s Clock.*";
|
||||
}
|
||||
}
|
||||
divSchemes1
|
||||
{
|
||||
type dictionaryValue;
|
||||
path "<system>/fvSchemes";
|
||||
|
||||
entries
|
||||
{
|
||||
divSchemes "divSchemes";
|
||||
}
|
||||
}
|
||||
fvSolution1
|
||||
{
|
||||
type dictionaryValue;
|
||||
path "<system>/fvSolution";
|
||||
|
||||
entries
|
||||
{
|
||||
solver_p "solvers/p/solver";
|
||||
solver_p_tol "solvers/p/tolerance";
|
||||
solver_p_reltol "solvers/p/relTol";
|
||||
solver_U "solvers/U/solver";
|
||||
solver_U_tol "solvers/U/tolerance";
|
||||
solver_U_reltol "solvers/U/relTol";
|
||||
}
|
||||
}
|
||||
controlDict1
|
||||
{
|
||||
type dictionaryValue;
|
||||
path "<system>/controlDict";
|
||||
|
||||
entries
|
||||
{
|
||||
initial_deltaT "deltaT";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,104 @@
|
||||
---
|
||||
marp: true
|
||||
paginate: true
|
||||
---
|
||||
|
||||
<style>
|
||||
:root {
|
||||
font-size: 20px;
|
||||
}
|
||||
td {
|
||||
width: 1000px;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
img {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 60%;
|
||||
}
|
||||
</style>
|
||||
|
||||
# {{OF_EXECUTABLE}} : {{OF_CASE_NAME}} tutorial
|
||||
|
||||
- Case: {{OF_CASE_PATH}}
|
||||
- Submission: {{OF_CLOCK_START}} on {{OF_DATE_START}}
|
||||
- Report time: {{OF_CLOCK_NOW}} on {{OF_DATE_NOW}}
|
||||
|
||||
---
|
||||
|
||||
## Run information
|
||||
|
||||
| Property | Value |
|
||||
|----------------|--------------------|
|
||||
| Host | {{OF_HOST}} |
|
||||
| Processors | {{OF_NPROCS}} |
|
||||
| Time steps | {{OF_TIME_INDEX}} |
|
||||
| Initial deltaT | {{initial_deltaT}} |
|
||||
| Current deltaT | {{OF_TIME_DELTAT}} |
|
||||
| Execution time | {{executionTime}} |
|
||||
|
||||
---
|
||||
|
||||
## OpenFOAM information
|
||||
|
||||
| Property | Value |
|
||||
|----------------|--------------------|
|
||||
| Version | {{OF_VERSION}} |
|
||||
| API | {{OF_API}} |
|
||||
| Patch | {{OF_PATCH}} |
|
||||
| Build | {{OF_BUILD}} |
|
||||
| Architecture | {{OF_BUILD_ARCH}} |
|
||||
|
||||
---
|
||||
|
||||
## Mesh statistics
|
||||
|
||||
| Property | Value |
|
||||
|-------------------|----------------------|
|
||||
| Bounds | {{OF_MESH_BOUNDS_MIN}}{{OF_MESH_BOUNDS_MAX}} |
|
||||
| Number of cells | {{OF_MESH_NCELLS}} |
|
||||
| Number of faces | {{OF_MESH_NFACES}} |
|
||||
| Number of points | {{OF_MESH_NPOINTS}} |
|
||||
| Number of patches | {{OF_MESH_NPATCHES}} |
|
||||
|
||||
---
|
||||
|
||||
## Linear solvers
|
||||
|
||||
| Property | Value | tolerance(rel) | Tolerance(abs) |
|
||||
|----------|----------------|------------------|---------------------|
|
||||
| p | `{{solver_p}}` | {{solver_p_tol}} | {{solver_p_reltol}} |
|
||||
| U | `{{solver_U}}` | {{solver_u_tol}} | {{solver_u_reltol}} |
|
||||
|
||||
---
|
||||
|
||||
## Numerical scehemes
|
||||
|
||||
The chosen divergence schemes comprised:
|
||||
|
||||
~~~
|
||||
{{divSchemes}}
|
||||
~~~
|
||||
|
||||
---
|
||||
|
||||
## Graphs
|
||||
|
||||
Residuals
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Results
|
||||
|
||||
Forces
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
Made using Open∇FOAM v2412 from https://openfoam.com
|
Loading…
Reference in New Issue
Block a user