Thermal FEM Analysis
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Thermal FEM Analysis
Firstly absolute great job done by anybody working on free-cad this is really becoming a great tool.
Personally I am a mechanical engineer who has been doing FEA analysis for the last 15 years using a large number of commercial packages.
The FEM workbench has the potential of becoming very powerful very quickly.
Calculix is a powerful non-linear FEA solver and the extra functionality only needs be included in Free-cad
We are looking at including thermal structural coupled analysis:
The first step would be constraint
1. Temperature constraint (similar to displacement)
2. Convection constraint (similar to pressure)
The we would need to add thermal material properties to the materials.
Then we would need to bring the result back into the display.(this I still have to do some digging on)
With very little coding experience this may take us a while.
But with the examples for the other code we should get it done
Regards
Michael
Personally I am a mechanical engineer who has been doing FEA analysis for the last 15 years using a large number of commercial packages.
The FEM workbench has the potential of becoming very powerful very quickly.
Calculix is a powerful non-linear FEA solver and the extra functionality only needs be included in Free-cad
We are looking at including thermal structural coupled analysis:
The first step would be constraint
1. Temperature constraint (similar to displacement)
2. Convection constraint (similar to pressure)
The we would need to add thermal material properties to the materials.
Then we would need to bring the result back into the display.(this I still have to do some digging on)
With very little coding experience this may take us a while.
But with the examples for the other code we should get it done
Regards
Michael
Re: Thermal FEM Analysis
Welcome to the forum Michael! I think I have some good news for you about the visualisation part I'll be sending a pull request soon for some important FEM result object changes [1] and there will be a result type agnostic way of visualising. Whatever you can provide as a list of float values (i.e. temperature or heat flux) or a list of vectors can be shown as colour or displacement of the mesh.
[1] viewtopic.php?f=18&t=11402
[1] viewtopic.php?f=18&t=11402
Re: Thermal FEM Analysis
Hi Michael, welcome to FreeCAD forum.makkemal wrote:... We are looking at including thermal structural coupled analysis: ...
What kind of FEM Elemtent would you like to use?
Re: Thermal FEM Analysis
Since the mesher only supports TET elements at this stage I will be working with them. High order TET elements are perfectly fine for most analysis.
In most packages any element supports thermal conduction. (I have not dug into the Calculix manual for the element name yet).
Calculix supports direct coupled structural thermal transient analysis.
I have mad a few test models using just Calculix and the results compare well to the Ansys results.
But Calculix is directly coupled (solves temperature and thermal field in one step)
Ansys is weak coupled. (solves thermal field and then solves structural field)
Right now just getting the code compiled is a bit steeper leaning curve than I expected.
Thanks
Michael
In most packages any element supports thermal conduction. (I have not dug into the Calculix manual for the element name yet).
Calculix supports direct coupled structural thermal transient analysis.
I have mad a few test models using just Calculix and the results compare well to the Ansys results.
But Calculix is directly coupled (solves temperature and thermal field in one step)
Ansys is weak coupled. (solves thermal field and then solves structural field)
Right now just getting the code compiled is a bit steeper leaning curve than I expected.
Thanks
Michael
Re: Thermal FEM Analysis
The setNodeColourByScalars function is now in the master branch [1], so if you can read the results into a python list you can show them on the mesh. Example usage [2]
[1] https://github.com/FreeCAD/FreeCAD_sf_m ... mp.cpp#L60
[2] https://github.com/FreeCAD/FreeCAD_sf_m ... is.py#L592
[1] https://github.com/FreeCAD/FreeCAD_sf_m ... mp.cpp#L60
[2] https://github.com/FreeCAD/FreeCAD_sf_m ... is.py#L592
Re: Thermal FEM Analysis
Thanks PrzemoF
I did see your post for results that help allot
I made basic constraint file's but nothing is working yet
Regards
Michael
I did see your post for results that help allot
I made basic constraint file's but nothing is working yet
Regards
Michael
Re: Thermal FEM Analysis
Would you mind posting a simple sample CalculiX input file for such an analysis?makkemal wrote:...High order TET elements are perfectly fine for most analysis.
...
Calculix supports direct coupled structural thermal transient analysis.
I have mad a few test models using just Calculix and the results compare well to the Ansys results.
But Calculix is directly coupled (solves temperature and thermal field in one step)
Ansys is weak coupled. (solves thermal field and then solves structural field)...
Re: Thermal FEM Analysis
bernd, there should be some examples here: http://www.dhondt.de/cgx_2.8.exa.tar.bz2
Re: Thermal FEM Analysis
Except for node, elements, etc. This is what goes into the caculix input deck for steady state analysis
To change it to a transient coupled analysis
Change the following lines
** Coupled Temperature Solves Temperature and Stress field simultaneously
*COUPLED TEMPERATURE-DISPLACEMENT
0.2,3000.0
Regards
Michael
To change it to a transient coupled analysis
Change the following lines
** Coupled Temperature Solves Temperature and Stress field simultaneously
*COUPLED TEMPERATURE-DISPLACEMENT
0.2,3000.0
Code: Select all
** Material properties definition specific to thermal structural analysis. Name defined as STEEL
*MATERIAL,NAME=STEEL
** Elastic Properties of material defined
*ELASTIC
210000000000.0,0.3
** Expansion coefficient of material defined
*EXPANSION
1.2e-05
** Thermal Conductivity of material defined
*CONDUCTIVITY
5.0
** specific heat and density specificed for transient analysis
*SPECIFIC HEAT
446.0
*DENSITY
8050.0
** Element specified to behave as solids.
*SOLID SECTION,Elset = Eall,MATERIAL = STEEL
** Initial condition sets all initial temperature of all nodes, in this case, to 300K
*INITIAL CONDITIONS,TYPE=TEMPERATURE
Nall,300.
** Initiate Solution
*STEP,INC=2000
** Coupled Temperature Solves Temperature and Stress field simultaneously
*COUPLED TEMPERATURE-DISPLACEMENT, STEADY STATE
**0.2,3000.0
** Assigns convective heat transfer coefficients and ambient temperatures to their respective element sets
*FILM
EInnerPipeSurfaceSetInsideTheta,F1,1000.0,50.0
EInnerPipeSurfaceSetOutsideTheta,F1,500.0,60.0
EOuterPipeSurfaceSet,F2,300.0,40.0
** Assignment of pressuresure loading normal to face of inner diameter of pipe
*DLOAD
EInnerPipeSurfaceSetOutsideTheta,P1,200000000.0,
EInnerPipeSurfaceSetInsideTheta,P1,200000000.0,
** Used to generate data file
*NODE PRINT,NSET=Nall
** NT refers to nodal temperatures
NT
** Generates CXX Results File contating calculated temperature field.
*NODE FILE
NT
** Generates CXX Results File contating calculated Stress (S) and Strain (U) fields.
*El File
S, U
*END STEP
Michael
Last edited by makkemal on Wed Jul 29, 2015 12:08 pm, edited 1 time in total.
Re: Thermal FEM Analysis
@przemo, thanks for the link
@makkemal, thanks for the file and code.
BTW: @makkemal, if you would use the code tags around the CalculiX code it would look much better. Just mark the code and press the icon code. You could even still edit your post in this regard.
[/code]
@makkemal, thanks for the file and code.
BTW: @makkemal, if you would use the code tags around the CalculiX code it would look much better. Just mark the code and press the icon code. You could even still edit your post in this regard.
Code: Select all
some sample calculix code
looks much better
if it is inside code tags --> [code]