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

How to implement subroutine to modify domain type?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2007, 00:17
Default How to implement subroutine to modify domain type?
  #1
Chin
Guest
 
Posts: n/a
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!

  Reply With Quote

Old   December 5, 2007, 10:17
Default Re: How to implement subroutine to modify domain t
  #2
opaque
Guest
 
Posts: n/a
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

  Reply With Quote

Old   December 5, 2007, 17:21
Default Re: How to implement subroutine to modify domain t
  #3
Chin
Guest
 
Posts: n/a
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!
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 05:32
Flow Around a Cylinder ronaldo OpenFOAM 5 September 18, 2009 09:13
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 06:49


All times are GMT -4. The time now is 01:47.