|
[Sponsors] |
January 13, 2024, 21:15 |
Closing and opening the outlet periodically
|
#1 |
New Member
Volkan Atar
Join Date: Oct 2022
Posts: 23
Rep Power: 4 |
Hello Foamers,
I am working on a case of interFoam. It's like a mixing process. I start the simulation with setfields. So there is no inlet. It's closed system. There is only one outlet which i want to have for a certain period of time opened and closed. I have used codedMixed BC on my outlet for the U: outlet { type codedMixed; refValue uniform (0 0 0); refGradient uniform (0 0 0); valueFraction uniform 1; name codedauslass_U_BC; code #{ const scalar t = this->db().time().value(); const scalar period = 0.09; scalar timeWithinPeriod = fmod(t, period); if (timeWithinPeriod <= 0.045) { this->valueFraction() = 1; this->refValue() = vector::zero; this->refGrad() = vector::zero; } else { this->refValue() = vector::zero; this->refGrad() = vector::zero; this->valueFraction() = 0; } #}; } For some time at the begining it seems like it's working but later during the simulation the volume of the liquid which i'm interested in starts to increase for some time and then it starts decrease again kinda back flow effect. Is there a way to overcome this problem? Thanks in advance. |
|
January 14, 2024, 01:51 |
|
#2 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
If you are interested in closing/opening the outlet progressively, you may need to use cyclicACMI BC.
Regards
__________________
Don't keep making the same mistakes. Try to make new mistakes. |
|
January 14, 2024, 08:24 |
|
#3 |
New Member
Volkan Atar
Join Date: Oct 2022
Posts: 23
Rep Power: 4 |
Thanks for your reply and the hint. Could you tell me any tutorial about that? I used to use cyclicACMI boundary type when i had a symmetric rotational sliding mesh to overcome the problem with low weight values of the AMI which were approaching to zero and eventually simulation stops.
I can't really imagine how to use that cyclicACMI otherwise for the outlet. Thanks again |
|
January 14, 2024, 08:36 |
|
#4 |
New Member
Volkan Atar
Join Date: Oct 2022
Posts: 23
Rep Power: 4 |
I think i found a tutorial about that TJunctionswitching. I'll take a look into that tutorial. Thanks for your hint.
|
|
January 14, 2024, 08:42 |
|
#5 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
Hi,
You can also check this tutorials by Tobias on his website: https://holzmann-cfd.com/community/t...-heat-transfer For the list of tutorials, see this page: https://holzmann-cfd.com/community/training-cases I hope that helps Kind regards
__________________
Don't keep making the same mistakes. Try to make new mistakes. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to do a UDF to simulate the opening and closing of compressor valves? | sebas19 | Main CFD Forum | 0 | June 24, 2021 13:53 |
How to make a UDF to simulate the opening and closing of compressor valves? | sebas19 | Main CFD Forum | 0 | May 20, 2021 18:04 |
dynamic mesh: UDF to simulate opening and closing door | sinvastil | FLUENT | 1 | March 16, 2021 03:18 |
Opening closing and opening periodically with time | ranield | CFX | 1 | October 13, 2017 03:02 |
[swak4Foam] groovyBC for simulating the opening and closing of a valve | will_ca | OpenFOAM Community Contributions | 1 | February 17, 2015 07:27 |