Problems in my first attempt with chtMultiRegionSimpleFoam
1 Attachment(s)
Hello FOAMers,
I started with OpenFOAM in September, so I'm quite new in this world. My first steps in OF took me to solve some basic and easy cases of heat transmission in solids using laplacianFoam. I spent a couple of months getting some self-training in OF while I was solving some basic (mainly 2D) cases. After that I left OF aside for a while. However, some weeks ago I had to get back to OF but this time I had to run it with chtMultiRegionSimpleFoam. As I had no experience with it (I had only run and tried to understand the tutorial cases and the planeWall2D tutorial some months ago, when I was solving basic cases with laplacianFoam), for the last few weeks I have been studying deeply the tutorial cases and the planeWall2D in order to be able to set up a case I have to solve. In the attached pic you can see the geometry of my case. It consists of a sample which is heated (mainly by radiation) by a heater cylinder by means of an electrical current. These elements are covered by a metallic shield, whose function is to prevent from heat loss. The sistem is placed within a box (shell). As you can see, I have only generated a quarter of the whole geometry because of its symmetry. After all the information I have been looking for the last few weeks in order to solve my case I have found a couple of things I still don't know how to implement: - On the one hand, I need to set a heat source of a known generated power ("X" W/m³). With all the knowledge I have been gathering I concluded I need to use fvOptions, but I'm not much aware how to use it. I read things about codedSource, semiImplicitSource and some other types, but I still don't see it clear... -On the other hand, I also need to use radiation in my calculations but it is even more complicated to me to understand than the heat source setting. First I thought about using View Factors method because it's the only one I have studied before but after having read a little deeper I think that this method is not suitable for my case. However I think the proper method is fvDOM instead, but I still don't know how to use it... As I had to face all this problems when I was just beginning with chtMultiRegionFoam I decided to go on straight without using these options by now (anyway, if you want to give me a hint about these issues it will be much appreciated, otherwise I will probably open a new thread in the future if I haven't found a solution on my own). Thus, I just set a fixed temperature within the heater cells and let convection do the rest. I set up the case following the steps of the multiRegionHeaterRadiation tutorial. I copied all the files from this tutorial to my case and I just adapted the boundary and initial conditions to fulfill my requirements but I haven't modified anything else. I got some errors during the process that I was capable to solve by myself but now I got an error message that I can't understand what it says. The error message is the following: Code:
/*---------------------------------------------------------------------------*\ Regards, Alex |
gradientInternalCoeffs cannot be called for a calculatedFvPatchField
Hello again,
Fianally I found the solution for the error comented previously. It was just the definition of the boundary condition in the changeDictionaryDict-file for the variable T, which was set to Code:
type calculated; Code:
--> FOAM FATAL ERROR: After that, I got the same error in the next region, which, as I said, it has no default faces in it. Many thanks in advance! Alex |
All times are GMT -4. The time now is 04:07. |