set heating power in one solid according to T at a position in another solid
Hi all,
I want to set heating power in a solid, called A, according to temperature of one position of another solid, called B. The two solids are contacted and there is heat transfer between them. I have 2 questions. 1. I consider to use the codedSource in fvOptions. But since this fvOptions file will be put under /system/A/. I do not know if the temperature of solid B can be obtained in this fvOptions. 2. Could anybody give method to obtain temperature at one point to be used in codedSource? Thank you in advance! |
About the 2nd question, I found it can be solved by a forAll loop in which a if statement is used and judges whether the current cell is around the point want to be monitored by C[i].x(), C[i].y(), C[i].z(), where C is the cell center vertor field.
But a further problem is this method works fine when it runs in serial mode. When in parallel, the cores which is not involved the monitored point do not know the T has reached the target at the monitored point. So those cores set the heating power according to the T value I initialized in fvOptions continuously. I think some way to inform other cores is needed. Could anybody give advice on it? Thank you in advance! |
I found this problem about parallel can be solved by assign the component to a single processor.
Does anybody know how to solved the 1st question in original post, i.e. how to set the heating power SOLIDA according to temperature of a different region SOLIDB? According to my trial the fvOptions in /system/SOLIDA can't get information about a different region SOLIDB.Thanks. |
All times are GMT -4. The time now is 15:51. |