# Creating .num files from mesh created with blockMeshDict OpenFOAM

**URL:** <https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595>\
**Category:** Uncategorized\
**Created:** [April 18, 2023, 1:47pm UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595 "2023-04-18T13:47:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnobilo](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@mnobilo](https://calculix.discourse.group/u/mnobilo)\
**Post date:** [April 18, 2023, 1:47pm UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595/1 "2023-04-18T13:47:48Z")

</div>

Hello!  
I am new to calculix and I am trying to create my .msh and .num files form a mesh that I created with blockMeshDict dictionary inside OpenFOAM. I managed it with : cgx -foam command and loaded my mesh into the cgx. With ‘send all abq’ I created the all.msh file which contains all the nodes and that is fine. Now when I try to create .num files using ‘send setname abq nam’ I get .num file which is completely empty.

Do I have to create some face groups before extracting the nodes in .num files or something similar? Because I was convinced that since cgx read the polyMesh data, it will take the information about the created patches from there.

Thank you upfront for the help!

Martina

---

<div class="post-metadata">

**Author:** ![dichtstoff](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@dichtstoff](https://calculix.discourse.group/u/dichtstoff)\
**Post date:** [April 18, 2023, 3:23pm UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595/2 "2023-04-18T15:23:14Z")

</div>

Hello,  
maybe you can check, what you have for sets and what is included with the command:  
prnt se

---

<div class="post-metadata">

**Author:** ![mnobilo](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@mnobilo](https://calculix.discourse.group/u/mnobilo)\
**Post date:** [April 19, 2023, 7:44am UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595/3 "2023-04-19T07:44:05Z")

</div>

Hi, so this is what I get after running the command:  
all stat:o n:6840 e:3200 f:6840 p:0 l:0 c:0 s:0 b:0 L:0 S:0 se:0 sh:0 v:0

---

<div class="post-metadata">

**Author:** ![dichtstoff](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@dichtstoff](https://calculix.discourse.group/u/dichtstoff)\
**Post date:** [April 19, 2023, 8:21am UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595/4 "2023-04-19T08:21:18Z")

</div>

Hello,

in these set you have nodes n:6840, elements e:3200 and elementfaces f:6840,  
here the command should work with  
send all abq  
send all abq nam  
send all abq pres 1.0

etc.  
and it looks that you have only 1 set, the set all.  
so you must create other sets or they are included in your progress !?  
maybe you have missed something.

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/3/32c2e73ee78d32ef1d9efaf2778e95c8ee34fa26.png)

---

<div class="post-metadata">

**Author:** ![mnobilo](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@mnobilo](https://calculix.discourse.group/u/mnobilo)\
**Post date:** [April 19, 2023, 8:41am UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595/5 "2023-04-19T08:41:23Z")

</div>

Hi,  
yes so the following works very good:

Send all abr  
send all abq nam

Could you tell me how to create other sets ? I have a few different boundaries in polyMesh, but it seams that inside calculix I need to create sets (to tell which nodes belong to set inlet, outlet, interface, etc. ).  
I found one command :  
comp nodes do

but I am not sure if it is the right one. I used:  
comp do  
send abq nam

and the .nam files are created and non-empty. Is this the right way?

Thank you for your help!

Martina

---

<div class="post-metadata">

**Author:** ![dichtstoff](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@dichtstoff](https://calculix.discourse.group/u/dichtstoff)\
**Post date:** [April 19, 2023, 9:02am UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595/6 "2023-04-19T09:02:35Z")

</div>

Hello,

you can fix it by hand, manual with qadd, these works fine,

![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/5/564e01e20e6b23fb21e08bc5c45fa4d21c7d8416.png)

needs some practice, or you can fix it with enq, but these needs also some experience,  
but you can use a fbd file and use it automaticly with read input.fbd in cgx:

 ![image](https://global.discourse-cdn.com/free1/uploads/calculix/original/2X/5/52b3fd46006ef7fdd6a0925fcd291c19edd032ba.png)

[GettingStarted (baigar.de)](http://www.baigar.de/irix/Calculix1.7GettingStarted.pdf.gz)

---

<div class="post-metadata">

**Author:** ![mnobilo](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@mnobilo](https://calculix.discourse.group/u/mnobilo)\
**Post date:** [April 19, 2023, 9:35am UTC](https://calculix.discourse.group/t/creating-num-files-from-mesh-created-with-blockmeshdict-openfoam/1595/7 "2023-04-19T09:35:29Z")

</div>

Hi,  
Thank you very much for the instructions and link!

I will try it out that way.

Martina
