# How to run Calculix tests

**URL:** <https://calculix.discourse.group/t/how-to-run-calculix-tests/1810>\
**Category:** Uncategorized\
**Created:** [September 11, 2023, 5:03pm UTC](https://calculix.discourse.group/t/how-to-run-calculix-tests/1810 "2023-09-11T17:03:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Awareness](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Awareness](https://calculix.discourse.group/u/Awareness)\
**Post date:** [September 11, 2023, 5:03pm UTC](https://calculix.discourse.group/t/how-to-run-calculix-tests/1810/1 "2023-09-11T17:03:52Z")

</div>

Just stumbled at, for example, beamdy1.inp.

ccx beamdy1  
…  
Job finished

cgx -v beamdy1.frd

I manage to  
prnt se  
1 all stat:o n:261 e:32 f:72 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0  
plus all f  
plus: set:f does not exist  
plus f all green  
plus e all  
plot n all  
plot n CN7 blue  
plot: set:CN7 does not exist

while beamdy1.inp contains  
\*NSET, NSET=CN7  
97, 96, 95, 94, 93, 20, 19, 18, 17, 16, 15,  
14, 13, 12, 11, 10, 9, 4, 3, 2, 1  
\*BOUNDARY  
CN7, 1  
\*BOUNDARY  
CN7, 2  
\*BOUNDARY  
CN7, 3  
I want to see some load of the beam and reaction of the beam also. The animation would be good as well, and whatever staff, possible, to be obtained. There is no dataset in the menu, this is strange to me but I have no idea what to do.

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [September 11, 2023, 5:18pm UTC](https://calculix.discourse.group/t/how-to-run-calculix-tests/1810/2 "2023-09-11T17:18:12Z")

</div>

I’m not really familiar with cgx commands so usually I just use the options from the menu:

 ![beamdy1](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/8/897f963be324e068af816eb8a12a342b9431d42a.png)

In what form do you want to see the loads and reactions ?

---

<div class="post-metadata">

**Author:** ![Awareness](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Awareness](https://calculix.discourse.group/u/Awareness)\
**Post date:** [September 11, 2023, 5:29pm UTC](https://calculix.discourse.group/t/how-to-run-calculix-tests/1810/3 "2023-09-11T17:29:50Z")

</div>

You see I do not have dataset on the menu

 ![Screenshot at 2023-09-12 00-28-12](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/a/a76f308f3ed087805ab7e189edbbaf7c5e2c11cd.png)

---

<div class="post-metadata">

**Author:** ![rsmith](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/rsmith/32/1684_2.png) [@rsmith](https://calculix.discourse.group/u/rsmith)\
**Post date:** [September 11, 2023, 7:21pm UTC](https://calculix.discourse.group/t/how-to-run-calculix-tests/1810/4 "2023-09-11T19:21:03Z")

</div>

The sets are defined in the input file.

So after opening the frd file, you also have to read the inp file to have access to the sets. To view things, I like to write an fbd file for it.  
This is my template to view stress:

```auto
# Define the view.
rot y
rot r 135
rot u 30

# Read result data
read job.frd
# Read input data (sets)
read job.inp
frame

# First line of text below the window.
capt FEA result of ...
# Second line of text.
ulin Worst principal stress

# Stress
# Use the “turbo” colormap.
cmap turbo
# ds 4 is zzstr. e23 is worstPS
ds 4 e 23
# View the deformed state.
view disp
# Don't use shading.
view sh off
# Show the element borders
view elem
# Scale the deformation by a factor 10.
scal d 10

```

This means I only have to sort out the view orientation et cetera once.

I usually name this file `view-stress.fbd`.  
So viewing the stress results is as simple as:

```
cgx -b view-stress.fbd

```

---

<div class="post-metadata">

**Author:** ![Awareness](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Awareness](https://calculix.discourse.group/u/Awareness)\
**Post date:** [September 12, 2023, 11:25am UTC](https://calculix.discourse.group/t/how-to-run-calculix-tests/1810/5 "2023-09-12T11:25:29Z")

</div>

Thank you. I will try it later.
