CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent Multiphase (https://www.cfd-online.com/Forums/fluent-multiphase/)
-   -   Periodic Multiphase with Different BC for Phases (https://www.cfd-online.com/Forums/fluent-multiphase/216046-periodic-multiphase-different-bc-phases.html)

Luiz March 26, 2019 09:50

Periodic Multiphase with Different BC for Phases
 
Does anyone know if it is possible to set an periodic boundary condition for one phase and for the other set an pressure outlet for example?
I am trying to extract the time-averaged flow of water and at the same time extract an residence-time distributions curve from a certain region of the domain. The problem is that by solving exclusively with a periodic bc I would be re-injecting my tracer that should be advected out.

Luiz March 28, 2019 17:40

I managed to keep the periodic condition without allowing any tracer to come back by simply setting an automatic command each iteration. I would set the initial portion of my channel as a marked region and maintain its concentration as zero.
Code:

adapt/mark-inout-hexahedron [Inside] [Mouse Clicks] [x0] [x1] [y0] [y1] [z0] [z1] #marks zones which you can patch
solve/patch [domain] [cells] [region] [variable] [value] #patch zones with tracer concentration
solve/execute-commands/add-edit [name] [frequency] ["iteration"/"time-step"] ["command"] #adds an automated command to clear the inlet or outlet



All times are GMT -4. The time now is 20:43.