|
[Sponsors] |
June 11, 2014, 22:16 |
Callback function
|
#1 |
New Member
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 12 |
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, 05:31 |
|
#2 |
New Member
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 12 |
any body have any idea?
|
|
June 13, 2014, 07:42 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
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, 22:22 |
|
#4 | |
New Member
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 12 |
Quote:
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, 22:37 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
Do you want to put a contact resistance on the electric field? You probably need a source term to do that.
|
|
June 17, 2014, 07:54 |
|
#6 |
New Member
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 12 |
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, 20:59 |
|
#7 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
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, 21:33 |
|
#8 |
New Member
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 12 |
||
April 26, 2021, 13:23 |
|
#9 |
New Member
Join Date: Feb 2016
Posts: 21
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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
Please help about the VTKFoam | liugx212 | OpenFOAM Running, Solving & CFD | 0 | November 18, 2005 19:27 |