Creating test cases - GCMLab/GCMLab-FEM GitHub Wiki

Here's a guide on how to create new test cases. There are three main steps to the process:

  1. Create test case and run
  2. Add test case to automation
  3. Document the test case and solution

Create a configuration file

  • Create a configuration file in Test Files folder
  • Run the test case and ensure expected results

Adding to test case to the automation

Adding new automated tests

Document the test case and solution

  • Create a new page in the wiki
  • Include the following sections:
    • Geometry and mesh: Include an image of the domain/mesh. Document the geometry dimensions, number of elements, and types of elements used.
    • Material Properties: Include all material properties required to reproduce this problem (i.e. modulus of elasticity, Poisson's ratio).
    • Applied loads: Document magnitude, direction, and location of applied loads.
    • Boundary conditions: Document type of boundary condition and how it is applied.
    • Solution: Document the solution and the measures that are checked for accuracy.

Sample wiki code:

# Geometry and Mesh
[[/Verification/images/PatchTestDomain.png]] 

# Material properties
| Parameter | Value |
| --- | --- |
| Young's Modulus | 1 kPa | 
| Poisson's ratio | 0.3   |

Plane stress conditions applied

# Applied loads
...

# Boundary conditions
...

# Solution
...
⚠️ **GitHub.com Fallback** ⚠️