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

Using variable values at domain interface across the domains

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sanket_p

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2019, 08:52
Question Using variable values at domain interface across the domains
  #1
New Member
 
Sanket Patil
Join Date: Jan 2019
Posts: 2
Rep Power: 0
sanket_p is on a distinguished road
Two domains: Fluid, Solid.
In one of the boundary conditions in Solid domain, I want to use the values of one of the variables available for the Fluid domain (say, Absolute Pressure).

It does not seem like CFX allows a usage of variables in this manner (or at least I am not aware of it, yet.)

What bugs me is this: Since the location of the boundary(created by a Domain Interface) in the Solid domain and the boundary in the Fluid domain is physically the same, shouldn't CFX allow users to use the values of variables in this manner?

Anyway, please tell me if there are any ways this can be achieved.
DaveD! likes this.
sanket_p is offline   Reply With Quote

Old   March 4, 2019, 17:12
Default
  #2
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
What are you trying to do?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   February 17, 2021, 03:23
Default
  #3
New Member
 
Join Date: Feb 2016
Posts: 20
Rep Power: 10
DaveD! is on a distinguished road
Hello folks,


I've got the same problem. I am simulating flow of a variable composition homogenous gas mixture through a Porous Domain, which is in contact with a Solid Domain. In addition, I am modelling Electric Current through the Porous and the Solid Domain as well as heat transfer in all domains. Now, I want to set an Electric Contact Resistance at the Solid Porous Interface that depends on the local Electric Current Density and the local mixture compositition. Trying to do so, the solver quits before the first iteration with the following error:


Code:
  +--------------------------------------------------------------------+
  | ERROR #001100279 has occurred in subroutine ErrAction.             |
  | Message:                                                           |
  | The physics setup on domain interface "Interface Foam Wall" c-     |
  | ontains an expression that refers to a variable that is not avail- |
  | able on both sides of the interface. This is not allowed. Correct  |
  | the problem, perhaps by using callback functions that refer to o-  |
  | ne side only.                                                      |
  |                                                                    |
  +--------------------------------------------------------------------+
The problem is that
  1. Electric Current Density is only defined in the Solid Domain. In the Porous Domain, is is called Material.Electric Current Density and is higher than Electric Current Density by a factor of 1/(1-Volume Porosity).
  2. The composition mixture is only defined in the Porous Domain, but not in the Solid Domain.
Does anybody have an advice? I already thought of an algebraic Additional Variable that would solve pt. 1, but not pt. 2.
I also found this thread with a similar problem but no solution: Callback function



Thank you for your support.


Regards,
DaveD!
DaveD! is offline   Reply With Quote

Old   April 26, 2021, 12:19
Default
  #4
New Member
 
Join Date: Feb 2016
Posts: 20
Rep Power: 10
DaveD! is on a distinguished road
Ansys CFX support provides a Fortran Routine that allows to copy variable values from one domain side to the other using CEL:

https://support.ansys.com/AnsysCusto...ns/CFX/2040723

Originally, the routine was designed to model condensation, where the heat flux is calculated for and set as a sink at the fluid-side of a fluid-solid-interface and at the same time set the negative value as a source at the solid-side of the interface.

However, the routine can be used to copy arbitrary scalars from fluid to solid side (vectors and vice versa not tested yet).

The routines come as source text as well as pre-compiled DLLs for Ansys 16.2 under Windows and Linux. However, I had to recompile them for Ansys 2020 R2 under Windows and change the path and the Library Name in CFX slightly, see attached image.

Regards, DaveD!


1.PNG
DaveD! 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
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
Inducing backflow restrictions in domain interface for multiphase flow DarrenC CFX 4 August 6, 2014 21:17
Frozen Rotor 1:1 Mesh Connection pharley CFX 5 January 31, 2013 16:15
Numerical errors in nested domain with pre-calculated boundary values Arnoldinho OpenFOAM Running, Solving & CFD 3 April 4, 2012 10:31
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 06:31.