# Callback function

 Register Blogs Members List Search Today's Posts Mark Forums Read

 June 11, 2014, 21:16 Callback function #1 New Member   Yiwen Zhou Join Date: Jun 2014 Posts: 5 Rep Power: 11 Two domains:The solid domain is made of aluminum, and the fluid domain is made of water and air bubble (two phases). The current comes from the fluid domain and goes to the solid domain. The physical model includes k-epsilon turbulent model and the electric field model. On interface between the fluid and solid domain, there is the contact resistance. The contact resistance is the function of local current density. contactR=log10(abs(current density x/1[A m^-2]))/5*1 [ohm m^2]. In the solid domain, the current density x is available, but in the fluid domain, water. Current density x is available. Whether the current density x or the water. Current density x used in the expression, it contains an expression that refers to a variable that is not available on both sides of the interface. “This is not allowed. Correct the problem, perhaps by using callback functions that refer to one side only. “ There is little information on Callback function in the document. How to fix the problem? Thank you!

 June 13, 2014, 04:31 #2 New Member   Yiwen Zhou Join Date: Jun 2014 Posts: 5 Rep Power: 11 any body have any idea?

 June 13, 2014, 06:42 #3 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,703 Rep Power: 143 So doesn't the contact resistance apply on the fluid side of the interface? The just use the expression you describe as you don't need it in the solid domain.

June 16, 2014, 21:22
#4
New Member

Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 11
Quote:
 Originally Posted by ghorrocks So doesn't the contact resistance apply on the fluid side of the interface? The just use the expression you describe as you don't need it in the solid domain.
I found there this no such contact resistance options on the fluid side. For electric field, there is only "conervative interface flux" option.

 June 16, 2014, 21:37 #5 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,703 Rep Power: 143 Do you want to put a contact resistance on the electric field? You probably need a source term to do that.

 June 17, 2014, 06:54 #6 New Member   Yiwen Zhou Join Date: Jun 2014 Posts: 5 Rep Power: 11 Yes, I want put a contact resistance on the electric field. The boundary sources are for continuity, turbulence eddy dissipation and turbulence kinetic energy. The bulk sources are for turbulence eddy dissipation and turbulence kinetic energy. I found no source entry for electric field at the boundary interface of fluid side. How to do it? would you please give more details? Thank you!

 June 17, 2014, 19:59 #7 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,703 Rep Power: 143 I have never done sources on electric field so if you cannot find it then I would not know. You might need to contact ANSYS support for more information.

June 17, 2014, 20:33
#8
New Member

Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 11
Quote:
 Originally Posted by ghorrocks I have never done sources on electric field so if you cannot find it then I would not know. You might need to contact ANSYS support for more information.
Thank you for you immediately reply!

 April 26, 2021, 12:23 #9 New Member   Join Date: Feb 2016 Posts: 20 Rep Power: 10 Please see my answer in a different thread for a possible solution: Using variable values at domain interface across the domains Regards, DaveD!

 Tags callback function