|
[Sponsors] |
Using variable values at domain interface across the domains |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 4, 2019, 09:52 |
Using variable values at domain interface across the domains
|
#1 |
New Member
Sanket Patil
Join Date: Jan 2019
Posts: 2
Rep Power: 0 |
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. |
|
March 4, 2019, 18:12 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,871
Rep Power: 144 |
What are you trying to do?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
February 17, 2021, 04:23 |
|
#3 |
New Member
Join Date: Feb 2016
Posts: 21
Rep Power: 10 |
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. | | | +--------------------------------------------------------------------+
I also found this thread with a similar problem but no solution: Callback function Thank you for your support. Regards, DaveD! |
|
April 26, 2021, 13:19 |
|
#4 |
New Member
Join Date: Feb 2016
Posts: 21
Rep Power: 10 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Inducing backflow restrictions in domain interface for multiphase flow | DarrenC | CFX | 4 | August 6, 2014 22:17 |
Frozen Rotor 1:1 Mesh Connection | pharley | CFX | 5 | January 31, 2013 17:15 |
Numerical errors in nested domain with pre-calculated boundary values | Arnoldinho | OpenFOAM Running, Solving & CFD | 3 | April 4, 2012 11:31 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 21:09 |