# The set definition was used before the set was created

**URL:** <https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405>\
**Category:** Uncategorized\
**Created:** [December 18, 2022, 12:55pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405 "2022-12-18T12:55:42Z")\
**Posts on this page:** 15\
**Page:** 2

<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:** [December 20, 2022, 1:19pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/21 "2022-12-20T13:19:23Z")

</div>

Thank you very much for the explanations. Unbelievable to know that much with so scarcely available material around CalculiX.

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [December 20, 2022, 3:56pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/22 "2022-12-20T15:56:56Z")

</div>

> [@Awareness](#):
>
> swep all new tra 0 -10 0 2

you missed the target, using enquire in the graphical window you can see the coordinate of some nodes and see they aren’t inside your box, so support was created empty:

```auto
enq nodes support rec 0 _ 10 1 i
mode:i tol:1.000000
prnt se
1 all stat:o n:298 e:160 f:232 p:8 l:12 c:0 s:6 b:1 L:0 S:0 se:0 sh:0 v:0
3 new stat:c n:4 e:0 f:0 p:3 l:1 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
4 load stat:c n:27 e:0 f:16 p:4 l:4 c:0 s:1 b:0 L:0 S:0 se:0 sh:0 v:0
5 ref stat:c n:1 e:0 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
6 nodes stat:c n:27 e:0 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
7 -NJBY stat:c n:0 e:0 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
8 support stat:c n:0 e:0 f:0 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0
pic node
43 xyz= 200.000000 14.142136 -21.213203
axyz= 56.309932 96.054498 4.044691 rxyz= 25.495098 201.121854 200.499377
    in set=load(4),nodes(6),
 done
pic node
298 xyz= 200.000000 -14.142136 21.213203
axyz= 123.690068 83.945502 4.044691 rxyz= 25.495098 201.121854 200.499377
    in set=load(4),nodes(6),
 done

```

 ![imagen](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/8/883aeac73841a8d5622667ed6e524f79b5b6a515.png)

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [December 20, 2022, 4:00pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/23 "2022-12-20T16:00:37Z")

</div>

the manuals of CGX and CCX are pretty good, however there is so much information that at the beginning they may seem cumbersome. Persevere! it pays off.

---

<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:** [December 20, 2022, 4:27pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/24 "2022-12-20T16:27:53Z")

</div>

To absorb what you say here I need several days. Thank you.

---

<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:** [December 22, 2022, 7:13pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/25 "2022-12-22T19:13:57Z")

</div>

I read the material and oops, you can see how badly I do.

Looks like geometry I do somehow applicable to my problems

valu Etyp he8

# preprocessing

# geometry

seto beam  
pnt p0 0 0 0  
pnt p1 0 1006.5 0

line l0 p0 p1  
seta se0 l l0

swep se0 se1 tra 5 0 0  
seta ses0 A001

swep ses0 ses1 tra 0 0 38.2 8

seta rear A005  
seta front A006  
comp rear e  
rep rear  
comp rear f  
rep rear

comp front e  
rep front  
comp front f  
rep front

seta extend A002  
swep extend extended tra 0 0 9.8  
setc beam

elty beam Etyp  
mesh beam  
send beam abq

send rear abq surf  
send front abq surf  
send rear abq spc 2  
send rear abq pres 3000  
send front abq pres 3000  
plot f rear g  
plus f front r

But input deck is something, there is no clue what mistake I make

\*HEADING  
Model: CalculiX Beam Input File for welding experiment  
\*INCLUDE,INPUT=beam.msh  
\*BOUNDARY  
\*INCLUDE,INPUT=rear\_2.bou  
\*MATERIAL,NAME=EL  
\*ELASTIC  
2e6,0.3  
\*SOLID SECTION,ELSET=beam,MATERIAL=EL  
\*STEP,PERTURBATION # though is allowed for  
#\*FREQUENCY and \*BUCKLE steps only.  
\*STATIC  
\*DLOAD  
\*INCLUDE,INPUT=front.dlo  
\*STEP  
\*STATIC  
\*DLOAD  
\*INCLUDE,INPUT=rear.dlo  
\*NODE FILE  
U  
\*EL FILE  
S  
\*END STEP

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [December 22, 2022, 7:36pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/26 "2022-12-22T19:36:49Z")

</div>

your element set is called Ebeam, not beam. And later you have defined 2 steps without \*end step on first step, in case you wanted only one step with the 2 load sets, then remove the second \*step card:

\*HEADING  
Model: CalculiX Beam Input File for welding experiment  
\*INCLUDE,INPUT=beam.msh  
\*BOUNDARY  
\*INCLUDE,INPUT=rear\_2.bou  
\*MATERIAL,NAME=EL  
\*ELASTIC  
2e6,0.3  
\*SOLID SECTION,ELSET=Ebeam,MATERIAL=EL  
\*STEP,PERTURBATION # though is allowed for  
\*\*comments in CCX start with 2 asterisks  
\*\*#\*FREQUENCY and \*BUCKLE steps only.  
\*STATIC  
\*DLOAD  
\*INCLUDE,INPUT=front.dlo  
\*NODE FILE  
U  
\*EL FILE  
S  
\*END STEP  
\*STEP  
\*STATIC  
\*DLOAD  
\*INCLUDE,INPUT=rear.dlo  
\*NODE FILE  
U  
\*EL FILE  
S  
\*END STEP

---

<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:** [December 22, 2022, 7:49pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/27 "2022-12-22T19:49:28Z")

</div>

I corrected and tried it with two and one \*End step

ccx -c beam

\*Error in readinput: cannot open file -c.inp

---

<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:** [December 22, 2022, 8:07pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/28 "2022-12-22T20:07:40Z")

</div>

What else. I replace PERTURBATION with NLGEOM and issue

ccx beam. Why is it so?

It was calculating, and then stopped with  
\*Error: increment size smaller than minimum best solution and residuals are in the frd file

---

<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:** [December 22, 2022, 8:17pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/29 "2022-12-22T20:17:18Z")

</div>

Now it even works

cgx beam.frd

Datasets Entity All shows up, but displacement  
freeglut (cgx): menue manipulation not allowed while menues in use.

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [December 22, 2022, 9:03pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/30 "2022-12-22T21:03:38Z")

</div>

I pasted a working version already. Try it.

---

<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:** [December 22, 2022, 9:09pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/31 "2022-12-22T21:09:39Z")

</div>

I did. I made some versions of it. Displacement does not show up. I have to leave you till tomorrow, sorry. Lot of questions.

---

<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:** [December 23, 2022, 7:47am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/32 "2022-12-23T07:47:14Z")

</div>

What is your version of CalculiX? By the way my ccx\_2.11 I compiled myself and tests were good.

---

<div class="post-metadata">

**Author:** ![JuanP74](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@JuanP74](https://calculix.discourse.group/u/JuanP74)\
**Post date:** [December 23, 2022, 8:06am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/33 "2022-12-23T08:06:36Z")

</div>

my version is the latest: 2.20, but your file should run in much earlier versions  
EDIT: it was different before…v2.11 worked in a different way. check the manual [http://www.dhondt.de/ccx\_2.11.pdf](http://www.dhondt.de/ccx_2.11.pdf) compared to current version: [http://www.dhondt.de/ccx\_2.20.pdf](http://www.dhondt.de/ccx_2.20.pdf). To make previous file work just remove PERTURBATION from the  
\*static keyword. If you want to activate non linear effect you have to add NLGEOM.

I recommed you move to current version considering you’re a new user. Compilation is the same you just get the new source files.

---

<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:** [December 23, 2022, 11:03am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/34 "2022-12-23T11:03:08Z")

</div>

You are right it works on my site too. But without NLGEOM, while animate, looks like a simple beam with one end being squeezed and force being applied to the other end. In this case I need to know diflection in the middle of beam and by default it is provided on one end of beam. Is there any way around?

---

<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:** [December 23, 2022, 4:45pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/35 "2022-12-23T16:45:40Z")

</div>

My calculation of deflection of the beam is 0.8 cm, I do not understand where to look at to compare results.

[Previous page](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405.md?page=1)
