CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Closing and opening the outlet periodically

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By NotOverUnderated
  • 1 Post By NotOverUnderated

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2024, 21:15
Default Closing and opening the outlet periodically
  #1
New Member
 
Volkan Atar
Join Date: Oct 2022
Posts: 23
Rep Power: 4
Volkanatar is on a distinguished road
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.
Volkanatar is offline   Reply With Quote

Old   January 14, 2024, 01:51
Default
  #2
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
If you are interested in closing/opening the outlet progressively, you may need to use cyclicACMI BC.

Regards
Volkanatar likes this.
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Old   January 14, 2024, 08:24
Default
  #3
New Member
 
Volkan Atar
Join Date: Oct 2022
Posts: 23
Rep Power: 4
Volkanatar is on a distinguished road
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
Volkanatar is offline   Reply With Quote

Old   January 14, 2024, 08:36
Thumbs up
  #4
New Member
 
Volkan Atar
Join Date: Oct 2022
Posts: 23
Rep Power: 4
Volkanatar is on a distinguished road
I think i found a tutorial about that TJunctionswitching. I'll take a look into that tutorial. Thanks for your hint.
Volkanatar is offline   Reply With Quote

Old   January 14, 2024, 08:42
Default
  #5
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
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
Volkanatar likes this.
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 00:08.