Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Stopping the flow in a pipe after a certain time

Please login with a confirmed email address before reporting spam

Hi, I am new to COMSOL and I am simulating the expansion of steam in a a condenser from a cylinder. They are connected by a pipe. The expansion is due to pressure difference. I need to run the simulation for about 1 s.

Is there any way I can block the flow of steam from the cylinder to the condenser after a certain time say about 0.5 s and then simulate just the condenser for the remaining 0.5 s?

1 Reply Last Post May 16, 2016, 4:54 p.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 8 years ago May 16, 2016, 4:54 p.m. EDT
Use if statement with expression. if(t<.5[s]) *inlet_velocity . This will keep the inlet until .5 s and after that flow will be zero.
Use if statement with expression. if(t

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.