Hello
I am fairly new to CalculiX and want to use it to carry out FSI using preCICE. I am trying to recreate the perpendicular flap preCICE tutorial case Perpendicular flap | preCICE - The Coupling Library
I tried using FreeCAD however, I haven’t been able to generate an .inp file similar to the one in the tutorial (image attached).
I cannot make node sets and am unable to apply a zero magnitude force on the interface like the one in the original tutorial file.
Can this be done in FreeCAD or should I use a different software? If yes, how should I approach the problem and its relevant boundary conditions? I have tried Salome but I am new to it so I am not sure I did it right.
you have many questions, and there are maybe many solutions for your simulation.
i recommend you to start very simple.
the best way is to create your mesh and sets with cgx,
send out all sets and create a very simple inp file.
If everything works fine, you can change to create your mesh and sets with other tools
Test objective: plate buckling with solid elements
PNT p01 0.00000 0.00000 0.00000
SETA p01 p p01
SWEP p01 line01 tra 100 0 0
SETA line01 l L001
COMP line01 d
SWEP line01 area01 tra 0 100 0
SETA area01 s all
SWEP area01 bodie01 tra 0 0 .5
SETA bodie01 b all
COMP bodie01 d
SWEP area01 bodie02 tra 0 0 -.5
SETA ldivlh l L009 L00A L00C L00B L00H L00I L00K L00J
DIV ldivlh mult 0.5
SETA ldivlb l L001 L002 L005 L006 L00D L00E
DIV ldivlb mult 10
SETA ldivll l L003 L004 L007 L008 L00F L00G
DIV ldivll mult 20
SETA fixz L001 L002 L003 L004
COMP fixz d
SETA fixx l L003 L004
COMP fixx d
SETA fixy l L001
COMP fixy d
SETA lmove l L002
COMP lmove d
ELTY all HE20
MESH all
SETA pres s A004 A009
COMP pres d
COMP pres d
plot e all
DEL se p01
DEL se area01
DEL se ldivlh
DEL se ldivlb
DEL se ldivll
DEL se -NJBY
DEL se bodie01
DEL se bodie02
send all abq
send all abq nam
send pres abq pres 1
Thank you @dichtstoff for such a quick response and the cases. I tried both and they worked. I have also done the CCX starter case of the rectangular beam. I did notice that in all cases, when using CGX, .inp files are manually created. Is this always the case when using CGX?
As for the different software approach, I intend to work with a more complex geometry that I do not think I could deal with in CGX which is why, I wanted to replicate the file using FreeCAD or Salome. Also, this would help skip the process of manually making the .inp file right?
both are working, salome could be maybe a bit tricky. there should be many tutorials videos.
i prefer to work with stp files and netgen. with stp files you can use line on surfaces,
to create node sets on so on.
the output from netgen is example.vol
you can read with cgx with cgx -ng example.vol
and you can create a cgx file for your work with cgx, and use it with read cgx.fbd
¿May I ask you something that had gone unnoticed?. ¿What does the title of your post mean? ¿Is it possible to establish a boundary condition that imposes FORCE=0? I didn’t know about that kind of BC. ¿Don’t you mean free rotation or Friction=0?
Hi @Disla
I see how this might be confusing however, I wrote it like that because a zero magnitude load on the interface between fluid and solid acts as a place holder for the forces that the fluid will impose on the plate which will cause the value to update.
Hi @dichtstoff
Let me try this out and get back to you. Could I also import an already meshed file into netgen and then just generate the .vol file and import into CGX?
you import a geo file like stp file into netgen and generate a mesh and save it as a vol file.
with cgx you import the vol file, prepare the mesh and sets for your input file.
there should be also something in the manual. you can also mesh surfaces
NETGEN Import
In case NETGEN is used for meshing then the edges which are generated by
NETGEN can be included for modifications;
read edge-file edg
will create beam elements based on the defined edges. When the modifications
are done, the beam elements can be exported in the NETGEN-edge format with
the ”send setname stl” command and used for meshing in netgen (see also ”How
to deal with CAD-geometry”). The netgen mesh can be imported with
read netgen-file ng
If the NETGEN (.vol) file contains solid elements, all shells and beams are only
used to define surface sets of nodes and faces (+set). The shell elements
and beams are deleted by default. If you want to be more selective about the
elements imported from netgen, you use the keyword ndsb (NoDeleteShellsAnd-
Beams).
B.23 Remarks Concerning NETGEN
It is not necessary to write the mesh in abaqus format if you use netgen as a
mesher. The native netgen format (.vol) can be read by cgx (cgx -ng file.vol)
as well. The netgen mesh format (.vol) includes the surface-patches which were
defined by the edges of the model and used for the generation of the volume-
mesh. This patches can be used to define boundary conditions or loads. The
nodes and faces of this patches are stored in sets named “+set[nr]”. To get
an overview over the patches type “prnt se”. To see were the patches are lo-
cated type “plot f all” and use the “PAGE DOWN”-key to scan through all sets.
you have always three parts of work. One is creating the mesh with elements and nodes, included all sets of nodes
the second part is to create the inp file and of course a third with post-process, the results.
there is a good example how can work with more than one part in cgx and netgen.
but also freecad or salome or gmesh could be interesting.
if you want to an easy and quick way, than you have to buy software for these.
wbr dichtstoff
(Attachment Advanced CalculiX Tutorial.pdf is missing)
Hello @dichtstoff
Thank you for sharing these resources.
I made the flap (0.1m thick and 1m tall) in FreeCAD, saved it as a .iges file and then imported this into PreProMax however, the problem I am having is that PreProMax recognizes all surfaces as shell parts and so when I try to make sections, I can only make shell sections and not solid sections. Is it automatically assuming shell elements because of the 0.1 thickness? Is there anyone who knows a way that I could modify this in PreProMax?
When you generated the flap, did you make a solid or a face? Maybe try to extrude it instead of using face features. Maybe this could help solve the problem. Also try to increase its thickness and see if it affects the PrePoMax import.