Creating a group of nodes for a volume
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Creating a group of nodes for a volume
Is there a simple way to define a Boundary conditions for a group of nodes related to a volume?
I tried different ways without success (Fem Mesh Group or Node Sets). In the end, I do not find the node set in the Input file.
Thanks,
Sodelo
I tried different ways without success (Fem Mesh Group or Node Sets). In the end, I do not find the node set in the Input file.
Thanks,
Sodelo
Re: Creating a group of nodes for a volume
The material object has it. All other objects only uses faces, edges or vertices. See attached multi body analysis. The inp file has two volume element sets:
*ELSET,ELSET=SolidMaterialSolid
...
*ELSET,ELSET=SolidMaterial001Solid
...
*ELSET,ELSET=SolidMaterialSolid
...
*ELSET,ELSET=SolidMaterial001Solid
...
Re: Creating a group of nodes for a volume
The problem is, the inp exporter does not support mesh groups. the mesh group object is mainly used by people working with FEM meshes exported to med and unv. These both exporter does support groups. We really need to get the inp writer support groups and mixed meshes. Ahh see viewtopic.php?p=162988#p162988sodelo wrote:Is there a simple way to define a Boundary conditions for a group of nodes related to a volume?
I tried different ways without success (Fem Mesh Group or Node Sets). In the end, I do not find the node set in the Input file.
The node sets (defined with the node set tool) are not used by any other tool, as far as I know.
Re: Creating a group of nodes for a volume
Thanks for the information.
So there is no simple workaround since I need a node set and not an element set.
So there is no simple workaround since I need a node set and not an element set.
Re: Creating a group of nodes for a volume
Not with the gui, but you can get the nodes by python quite easy ...sodelo wrote:Thanks for the information.
So there is no simple workaround since I need a node set and not an element set.
- open the file I posted earlier
- run the code ...
Code: Select all
mysolid = App.ActiveDocument.CompoundFilter.Shape.Solids[0]
mymesh = App.ActiveDocument.CompoundFilter_Mesh.FemMesh
yournodes = mymesh.getNodesBySolid(mysolid)
Re: Creating a group of nodes for a volume
to write them to file use:
Code: Select all
filename = '/tmp/yournodes.inp'
f = open(filename, "wb")
f.write("*NSET,NSET=yournodeset\n")
for n in yournodes:
f.write(str(n) + ",\n")
f.close()
Re: Creating a group of nodes for a volume
I have used cgx for this purpose. Open the inp-file inside of cgx, for example the Box_mesh.inp which you get from the FreeCAD FEM-samples:sodelo wrote:So there is no simple workaround since I need a node set and not an element set.
Code: Select all
cgx -c Box_mesh.inp
Code: Select all
prnt se
Code: Select all
comp Eall do
Code: Select all
send Eall abq names
Ulrich
Re: Creating a group of nodes for a volume
Thanks to both of you for your help.
Re: Creating a group of nodes for a volume
since there are so many constraints we gone not support, we may add an generic constraint object, similar to the mesh region object, but directly dedicated to the analysis.
bernd
bernd