CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   How to implement subroutine to modify domain type? (https://www.cfd-online.com/Forums/cfx/24885-how-implement-subroutine-modify-domain-type.html)

Chin December 4, 2007 23:17

How to implement subroutine to modify domain type?
 
Dear all,

Let me describe my intention:

1) I have 3 domains set up for a Transient simulation.

2) The first 10 seconds, the domains are Fluid-Solid-Fluid, so there will be no flow across since the Solid domain is blocking the channel.

3) In the next 10 seconds, the domains become Fluid-Fluid-Fluid, so the middle domain acts as an opening valve that enables flow through the domains.

4) In the beginning, the domains are connected using Fluid-Solid, and Solid-Fluid interfaces; but the interfaces will change into Fluid-Fluid connection after 10 seconds, and vice versa.

Procedures 2~4 shall be repeated multiple times.

My question is:

=> How to implement subroutine to modify domain and interface types while the solver is running to solve a transient problem?

Thank you, and hope to hear from you all soon.

Cheers!


opaque December 5, 2007 09:17

Re: How to implement subroutine to modify domain t
 
Dear Chin,

That is not possible, nor the recommended approach for this type of problem.

Perhaps, you could setup the problem as 3 fluid domains, create a very large momentum source in the mid-domain, and change that source as a function of time (CEL expressions).

This approach should work assuming your flow is not tangential to the domain interfaces because this approach does not account for the turbulent wall shear formulation.

Hope this helps, Opaque


Chin December 5, 2007 16:21

Re: How to implement subroutine to modify domain t
 
Thank you Opaque,

I think your idea brightened me a lot..

I will try out your method, and will also try to make the middle domain to be "porous medium", and change the porosity accordingly..

Many thanks again.. Cheers!


All times are GMT -4. The time now is 13:25.