Tested with CGX 2.19 / CCX 2.19
- Linear static solution
- Plane stress model
- Test of element separation to avoid nodal averaging of results (AKA element solution in ANSYS)
File | Contents |
---|---|
pre.fbd | Pre-processing script for CGX |
post-n.fbd | Post-processing script for CGX, nodal averaging |
post-e.fbd | Post-processing script for CGX, no nodal averaging |
nodal.inp | CCX input with non-separated mesh (nodal averaging) |
element.inp | CCX input with separated mesh (no nodal averaging) |
test.py | Python script to run the full simulation |
> cgx -b pre.fbd
There are four beams, fixed at the left end and loaded by a pressure on the top faces. Each beam is meshed with a different element type:
Disk | CGX | CCX |
---|---|---|
1 (upper) | tr6s | CPS6 |
2 | tr3s | CPS3 |
3 | qu8sr | CPS8R |
4 (lower) | qu4s | CPS4 |
Parameter | Value | Description |
---|---|---|
le | 40 | Length in mm |
he | 10 | Height in mm |
pressure | 1 | Pressure in MPa |
The pre-processing script calls separate.py
, which separates the elements into disjoint meshes to avoid nodal averaging of the element results (stress). See the Helper Scripts page for details.
Because of the different meshes, both versions with and without nodal averaging require different input input files and therefore, different simulation runs.
> ccx nodal
> ccx element
The difference between connected and disjoint meshes is shown by the CGX function seta ! all
, which plots disjoint meshes in different colours.
> cgx -b post-n.fbd
> cgx -b post-e.fbd