|
| 1 | +# Plane beams - element solution |
| 2 | +Tested with CGX/CCX 2.11 |
| 3 | + |
| 4 | ++ Linear static solution |
| 5 | ++ Plane stress model |
| 6 | ++ Test of element separation to avoid nodal averaging of results (AKA element solution in ANSYS) |
| 7 | + |
| 8 | +File | Contents |
| 9 | + :------------- | :------------- |
| 10 | + [pre.fbd](pre.fbd) | Pre-processing script for CGX |
| 11 | + [post-e.fbd](post-e.fbd) | Post-processing script for CGX, no nodal averaging |
| 12 | + [post-n.fbd](post-n.fbd) | Post-processing script for CGX, nodal averaging |
| 13 | + [nodal.inp](nodal.inp)| CCX input with non-separated mesh (nodal averaging) |
| 14 | + [element.inp](element.inp)| CCX input with non-separated mesh (nodal averaging) |
| 15 | + |
| 16 | +## Preprocessing |
| 17 | +``` |
| 18 | +> cgx -b pre.fbd |
| 19 | +``` |
| 20 | +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: |
| 21 | + |
| 22 | +Disk |CGX | CCX |
| 23 | +:-- |:-- | :-- |
| 24 | +1 (upper)|tr6s |CPS6 |
| 25 | +2|tr3s | CPS3 |
| 26 | +3|qu8s | CPS8R |
| 27 | +4 (lower)|qu4s | CPS4 |
| 28 | + |
| 29 | +<img src="mesh.png" width="400" title="Beams with different element types"> |
| 30 | + |
| 31 | +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](../../Scripts) page for details. |
| 32 | + |
| 33 | +## Solving |
| 34 | +Because of the different meshes, both versions with and without nodal averaging require different input input files and therefore, different simulation runs. |
| 35 | +``` |
| 36 | +> ccx nodal |
| 37 | +> ccx element |
| 38 | +``` |
| 39 | + |
| 40 | +## Postprocessing |
| 41 | + |
| 42 | +The difference between connected and disjoint meshes is shown by the CGX function `seta ! all`, which plots disjoint meshes in different colours. |
| 43 | + |
| 44 | +### Nodal averaging (nodal solution) |
| 45 | +``` |
| 46 | +> cgx -b post-n.fbd |
| 47 | +``` |
| 48 | +<img src="nodal-mesh.png" width="400" title="Elements are connected by sharing nodes"> <img src="nodal-sx.png" width="400" title="Longitudinal stress, averaged at the nodes"> |
| 49 | + |
| 50 | +### No nodal averaging (element solution) |
| 51 | +``` |
| 52 | +> cgx -b post-e.fbd |
| 53 | +``` |
| 54 | +<img src="element-mesh.png" width="400" title="Elements don't share nodes, nodes are connected by equations"> <img src="element-sx.png" width="400" title="Longitudinal stress, not averaged at the nodes"> |
0 commit comments