# 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:** 20\
**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:** [December 18, 2022, 12:55pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/1 "2022-12-18T12:55:43Z")

</div>

!Hello there,

[txt|473x500](https://calculix.discourse.group/uploads/short-url/tuExUF7y3TtLuXFgY6rEHaY9lND.png)

 ![fbd](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/1/1520e64de87f36e2203a8280ba1a28b88a2b4e9d.png)  
 ![inp](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/e/e56f6fdc91a6e0cf25438246990e45f6cebb98eb.png)

Explanations on what I did wrong would be grateful.

---

<div class="post-metadata">

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

</div>

You have to import the mesh first, and if you want to include the fix.dlo and load.dlo at the step level, you can do that there. Remove them from lines 2 and 3.

---

<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 18, 2022, 3:51pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/3 "2022-12-18T15:51:34Z")

</div>

Thank you for your prompt reply but, funny thing, I got import concerning netgen in cgx manual  
and nothing in ccx manual. And how to do import beam.msh before any thing else I have no idea yet.

---

<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 18, 2022, 5:16pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/4 "2022-12-18T17:16:27Z")

</div>

$send beam frd - this I did not issue in the first place.

I come to other issue.  
$ccx beam  
\*Error reading \*Boundary. Card image:  
1,P1,2.422500E+03

Do not figure out yet how to apply load to beam sides at once.

---

<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 18, 2022, 5:54pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/5 "2022-12-18T17:54:57Z")

</div>

what are the commands that create your includes? I do not see any set created in cgx with the name of Ebeam that can be translated into a CCX element set with the same name using the command `send all abq nam`

---

<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 18, 2022, 6:10pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/6 "2022-12-18T18:10:58Z")

</div>

I used  
$send fix abq names  
$send load abq names  
And nodes and elements numbers I have in those files.  
I will try to correct.

---

<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 18, 2022, 6:11pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/7 "2022-12-18T18:11:53Z")

</div>

check this example: [CalculiX-Examples/Linear/BiaxBending at master · calculix/CalculiX-Examples · GitHub](https://github.com/calculix/CalculiX-Examples/tree/master/Linear/BiaxBending)

---

<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 18, 2022, 6:18pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/8 "2022-12-18T18:18:05Z")

</div>

My connection is really slow so I will reach the mentioned example tomorrow.

---

<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 18, 2022, 7:44pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/9 "2022-12-18T19:44:48Z")

</div>

I think is the discourse server…it’s been slow since a few days ago

---

<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 19, 2022, 11:40am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/10 "2022-12-19T11:40:17Z")

</div>

Right, I run the example, all went smooth with exception, several warnings  
\*WARNING in calinput. Card image cannot be interpreted:  
WARNING reading the input file. Card image:  
\*KINEMATIC  
And several others, rather difficult to print them all on my mobile. May it be because of my version cgx\_2.11, ccx\_2.11?  
While trying to simulate:  
$cgx file.frd  
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 19, 2022, 1:00pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/11 "2022-12-19T13:00:53Z")

</div>

the example was tested in v2.19. keyword \*kinematic was introduced in v2.12. Anyway what I suggested is that you should check out the way CGX is used to create sets to define boundary conditions in elements and/or nodes.

---

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

</div>

All right, I am on 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 19, 2022, 6:34pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/13 "2022-12-19T18:34:03Z")

</div>

# Here we go.

# It is a code and my notes along the code.

# If you do not mind to read and figure out

# what I missed. Lot of thank in advance.

# rotated rectangle section

pnt ! 0 5 25

# plot p all - nothing is plotted

# The set ”all” is created automatically at startup and will

# be open (see seto) all the time unless explicitly closed (see setc).

# Two points gives line

swep all new tra 0 -10 0 2

# plot p all - nothing is plotted

# plot l all - nothing is plotted

# This is 3rd point

swep all new tra 0 0 -50 8

# plot p all - nothing is plotted

move all rot x 45  
swep all load tra 200 0 0 10

# plot sa load - as expected

# Somehow I managed not to understand how # all that ‘swep’ happened to plot a right model.

# ref nodes

node 1 200 0 0

seta ref n all

# meshing

elty all he8i  
mesh all

# quick and dirty support

seta nodes n load

# plot n nodes

# is as expected

# This command is used to locate entities from a certain set (first

# provided set) and stores them in the second set.

# But surfaces can only be identified if the command “rep ”

# was issued before. The mode is defined by the keys ’i’ individual.

# Only the closest entity of all kinds of entities are stored in set

# ’support’, triggered by the ’i’ key.

enq nodes support rec 0 \_ 10 1 i

# strange enough I did not mean it

# plot na support

# draws my complete structure? I cannot understand it.

# write mesh and sets

send all abq  
send all abq nam

# plot of mesh and ref node

frame  
zoom 1.5  
rot -x  
rot c 90  
rot l 10  
rot u 10  
view elem  
plot n ref r  
plus f all n  
plus f load g  
plus n ref b 10  
plus n support r 10

# hcpy png Refs/mesh

---

<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, 8:06am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/14 "2022-12-20T08:06:50Z")

</div>

> [@Awareness](#):
>
> - nothing is plotted

try `frame` command (or the equivalent in the GUI), maybe you’re not looking where the point is

---

<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, 8:10am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/15 "2022-12-20T08:10:03Z")

</div>

not sure what’s your question. Did you get what you wanted?

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/4/44aecdd537344042f2402e1ee8601089e215a797.png)

---

<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, 10:50am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/16 "2022-12-20T10:50:33Z")

</div>

Plot na support draw the complete structure and I expect it draws around load set. And that’s what I wanted. And by the way I cannot understand what tolerance is in CalculiX. And I do know what tolerance means in producing a part of something.  
Need an example of tolerances.

---

<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, 10:53am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/17 "2022-12-20T10:53:16Z")

</div>

May be you are right I will after job time.

---

<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, 11:55am UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/18 "2022-12-20T11:55:11Z")

</div>

`plot na support` only plots the FEM outline, because in fact that set is empty. Use `plot` command to renew the plot only, if you want to keep previously plotted entities use `plus` instead.  
`prnt se` will show you a list of all sets created and their contents:

```auto
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
plot na support

```

![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/4/471a0ab1ae5e4545d16b9702686d12080c5791e0.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, 1:10pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/19 "2022-12-20T13:10:31Z")

</div>

```auto
seta support A001
comp support e
comp support f
plot f support

```

notice faces have 2 sides (different color): positive/negative

now you can create a surface from this:

`send support abq surf`

or a node set

`send support abq nam`

or a pressure to the faces in the set

`send load abq pres 0.05`

that will be useful to define your boundary conditions.

---

<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:16pm UTC](https://calculix.discourse.group/t/the-set-definition-was-used-before-the-set-was-created/1405/20 "2022-12-20T13:16:43Z")

</div>

Great, but what I miss if I use enq, may be because of that infinity value?

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