|
[Sponsors] |
set heating power in one solid according to T at a position in another solid |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 26, 2022, 05:46 |
set heating power in one solid according to T at a position in another solid
|
#1 |
New Member
Join Date: Sep 2022
Posts: 19
Rep Power: 4 |
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! |
|
December 27, 2022, 07:35 |
|
#2 |
New Member
Join Date: Sep 2022
Posts: 19
Rep Power: 4 |
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! |
|
December 28, 2022, 10:23 |
|
#3 |
New Member
Join Date: Sep 2022
Posts: 19
Rep Power: 4 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[solids4Foam] How to calculate drag coeff when using solids4Foam | amuzeshi | OpenFOAM CC Toolkits for Fluid-Structure Interaction | 15 | November 7, 2019 13:50 |
How to show the transient case? | H.P.LIU | Phoenics | 7 | July 13, 2010 05:31 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |
How to set environment variables | kanishka | OpenFOAM Installation | 1 | September 4, 2005 11:15 |
Combustion Convergence problems | Art Stretton | Phoenics | 5 | April 2, 2002 06:59 |