|
[Sponsors] |
How to implement subroutine to modify domain type? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2007, 00:17 |
How to implement subroutine to modify domain type?
|
#1 |
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! |
|
December 5, 2007, 10:17 |
Re: How to implement subroutine to modify domain t
|
#2 |
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 |
|
December 5, 2007, 17:21 |
Re: How to implement subroutine to modify domain t
|
#3 |
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! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |