CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

set heating power in one solid according to T at a position in another solid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 26, 2022, 04:46
Default 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: 3
hogglife is on a distinguished road
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!
hogglife is offline   Reply With Quote

Old   December 27, 2022, 06:35
Default
  #2
New Member
 
Join Date: Sep 2022
Posts: 19
Rep Power: 3
hogglife is on a distinguished road
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!
hogglife is offline   Reply With Quote

Old   December 28, 2022, 09:23
Default
  #3
New Member
 
Join Date: Sep 2022
Posts: 19
Rep Power: 3
hogglife is on a distinguished road
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.
hogglife is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 12:50
How to show the transient case? H.P.LIU Phoenics 7 July 13, 2010 04:31
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
How to set environment variables kanishka OpenFOAM Installation 1 September 4, 2005 10:15
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 05:59


All times are GMT -4. The time now is 19:10.