CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Callback function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2014, 21:16
Question Callback function
  #1
New Member
 
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 11
search4sth is on a distinguished road
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!

search4sth is offline   Reply With Quote

Old   June 13, 2014, 04:31
Default
  #2
New Member
 
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 11
search4sth is on a distinguished road
any body have any idea?
search4sth is offline   Reply With Quote

Old   June 13, 2014, 06:42
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   June 16, 2014, 21:22
Default
  #4
New Member
 
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 11
search4sth is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
Thank you for you reply.
I found there this no such contact resistance options on the fluid side. For electric field, there is only "conervative interface flux" option.
search4sth is offline   Reply With Quote

Old   June 16, 2014, 21:37
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Do you want to put a contact resistance on the electric field? You probably need a source term to do that.
ghorrocks is offline   Reply With Quote

Old   June 17, 2014, 06:54
Default
  #6
New Member
 
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 11
search4sth is on a distinguished road
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!
search4sth is offline   Reply With Quote

Old   June 17, 2014, 19:59
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   June 17, 2014, 20:33
Default
  #8
New Member
 
Yiwen Zhou
Join Date: Jun 2014
Posts: 5
Rep Power: 11
search4sth is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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!
search4sth is offline   Reply With Quote

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

Reply

Tags
callback function


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
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Please help about the VTKFoam liugx212 OpenFOAM Running, Solving & CFD 0 November 18, 2005 18:27


All times are GMT -4. The time now is 02:42.