I have a static thermal model that solves fine in Mecway. I would like to adapt it for Calculix so I can have orthotropic and temperature-dependent CTC. There is internal heat generated near the top surface, and convection on the bottom. Mecway does not export convection conditions to Calculix, so I need to manually amend the .inp file. I am hoping that Mecway 6 beta will successfully deal with the pyr6 elements that are part of my model. First thing I want to do is to get the model solved as is (without the fancy CTC),
Just for interest, when I try to use the Calculix solver direct (with no manual convection from Mec6 beta, no solution is found and the Calculix output is full of errors like this:
*ERROR in e_c3d_th: nonpositive jacobian
determinant in element 13128
A non-exhaustive check on the elements that have this error appears to show that they are all pyr13 and all are the same material, having a temperature-dependent CTC. As far as I can see, pyr13 elements with non-temperature-dependent CTC are not listed with this error.
But I never expected the model to solve properly anyway, because the convection condition is not exported. So, I ploughed on and made the following changes to the .inp file:
1. I removed a few lines such as:
*NSET,NSET=Aluminium
*SURFACE,NAME=Cooled
which corresponded to named selections in the Mecway model and were not referred to elsewhere in the .inp file, so I figured they were redundant
2. I removed a set of lines similar to
*ELSET,ELSET=CVDD_fine
which were defining the regions with internal heat constraints from my Mecway model. The internal heat is defined later in the .inp file without reference to the above ELSET definitions, so I concluded that these were redundant. Other ELSET definitions that are later used to assign materials were left in place.
I think the *CFLUX section is the internal heat generation, but I could not understand why some of the values are negative. When I add up all the figures they add up to my total heat flux in watts, so I assume that the negative figures are a legitimate artefact of the conversion from flux/volume to flux/node.
3. After the *CFLUX definitions I inserted a *FILM section to represent convection at 3000 W per metre squared, with a cooling fluid at 10°C. The elements and surfaces were defined by adapting the appropriate ELSET (named selection), but changing all the surfaces from S to F. The first few lines are like this:
*FILM
65214,F3,283.15,3000
65215,F3,283.15,3000
65216,F3,283.15,3000
65217,F3,283.15,3000
65218,F3,283.15,3000
When I run this .inp file from file explorer (by double clicking), I get a cmd.exe window with a bunch of warnings along the lines of:
WARNING: in readccx() INI_FIELD_SIZE:5000000 to large and is reduced
Followed by line after line of errors, e.g.:
ERROR in seta: set Cr_interlayer, elem:64486 does not exist, min:2147483647 max:0
When I run from the Calculix command line (ccx filename), I get a promising start, leading to a statement about using 1 CPU to perform the heat flux calculation, but then we have a load of our old friends, the nonpositive jacobean determinant:
*ERROR in e_c3d_th: nonpositive jacobian
determinant in element 22601
To check whether some of the stuff I had edited out was important, I went back to the original .inp generated by Mecway and just added the *FILM constraint. This gave similar results. My final punt was to change the temperature-dependent CTC to a non-temperature-dependent CTC - this didn't help.
No idea how to proceed. Attached is the .inp file with some of the modifications described above (stuff removed, *FILM added, temp-dependent CTC). I understand that people don't have time to plough through the details, but if anyone could make any suggestions of where I am going wrong, I would be very grateful.
Comments
When I do a node-for-node plot of heat flux (X direction), I get a reasonable fit on X=Y, there are a number of nodes at the top right of the plot where the Mecway fluxes do not vary with the CCX fluxes. I know the figures aren't in themselves meaningful as they are from scaled models (1e6 times original size), but it is an interesting pattern. I tracked down one of the nodes from near the top of the plot and found it to be in the X=0 plane of the model, with no material in the positive direction; the plane X=0 represents a plane of symmetry in the 'real life' assembly and so the model is truncated here, and zero net heat flux across this plane is assumed. I find it strange that a node with no material in the +X direction has a modest but positive heat flux in the X direction... I suppose it must cancel itself out in the grand scheme of things.
Good weekend all!