CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Periodic boundary condition at Inlet and outlet with Massflow

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2022, 11:40
Default
  #21
Senior Member
 
Mey
Join Date: Dec 2019
Posts: 116
Rep Power: 6
MNMK is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
- You have a FINMES error. This means Final Message. Not very helpful
- You use k epsilon. Better use SST
- Why do you use a physical timestepping. Better use auto timescale and let CFX determine the size based on occurring phenomena.
- Your case is not converging at all. Did you create a backup just before the crash? If not, please do. This might help in finding the cause.
- The modelling approach you use, with translational peridicity works pretty will, if the tubes are straight. Then the velocity in and out have a change to make sense, provided there is no huge recirculation and backflow in the outlet, because that will appear at the inlet as well, which the solver does not like. For the same reason, it is common practice in CFD in general to move outlets downstream such that objects of interest do not influence outlets and vice versa. In your geometry, you have a similar problem. I think there will be many recirculations just in front of your outlet that will affect the flow in the inlet. Therefore I am not convinced your approach will work for this geometry.
- Did you try to perform a simulation on a segment instead of full 360°? This might help.
- Did you try to make the interface on the smallest diameter instead of the largest diameter. I would expect that to work better since the recirculations close to the outlet will be reduced.

Hi,

I have tried SST Model but I received the same fatal error.

I have tried the Auto timescale. However, I was faced with the same error. Therefore, I chose the best Physical Timestep which the calculation had the best residual.


It would be great if you suggested a solution.

best,
MNMK is offline   Reply With Quote

Old   August 29, 2022, 12:03
Default
  #22
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,922
Rep Power: 28
Gert-Jan will become famous soon enough
What about my last suggestion? Please try this first.
Gert-Jan is offline   Reply With Quote

Old   August 29, 2022, 13:33
Default
  #23
Senior Member
 
Mey
Join Date: Dec 2019
Posts: 116
Rep Power: 6
MNMK is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
What about my last suggestion? Please try this first.


Surely, I will try the suggestion. Do you mean I make an interface in in/outlet with a diameter like a straight duct.Infact you want to ignore the recirculation in the wave zone. To be sure: Don't you think it has a negative influence on result?
MNMK is offline   Reply With Quote

Old   August 30, 2022, 08:28
Default
  #24
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,922
Rep Power: 28
Gert-Jan will become famous soon enough
You have a tube that looks like a vacuum cleaner hose.
From that, you select a section such that inlet and outlet are on the large diameter.
I would take a section such that inlet and outlet are on the small diameter.
Gert-Jan is offline   Reply With Quote

Old   August 31, 2022, 06:06
Default
  #25
Senior Member
 
Mey
Join Date: Dec 2019
Posts: 116
Rep Power: 6
MNMK is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
You have a tube that looks like a vacuum cleaner hose.
From that, you select a section such that inlet and outlet are on the large diameter.
I would take a section such that inlet and outlet are on the small diameter.
Hi,

I have tested your suggestions.
1.With a smaller diameter--> I have got the same fatal error. In fact it did not work.

2.I have reduced the geometry to 45° instead of 360° with periodic boundary conditions, as I could guess I did not work as well.

I am looking forward to other advice.

regards,
MNMK is offline   Reply With Quote

Old   August 31, 2022, 06:28
Default
  #26
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,922
Rep Power: 28
Gert-Jan will become famous soon enough
- make several backups just before it crashes, by clicking on the backup button in the top ribbon of the solver manager. Open them in Post. What do the results in these backups tell you? Is the velocity developing weird, or pressures, or something else? What makes them crash?
- I would take a segment of 5° instead of 45°, or even smaller.
Gert-Jan is offline   Reply With Quote

Old   August 31, 2022, 06:37
Default
  #27
Senior Member
 
Mey
Join Date: Dec 2019
Posts: 116
Rep Power: 6
MNMK is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
- make several backups just before it crashes, by clicking on the backup button in the top ribbon of the solver manager. Open them in Post. What do the results in these backups tell you? Is the velocity developing weird, or pressures, or something else? What makes them crash?
- I would take a segment of 5° instead of 45°, or even smaller.

I will send you the back up.
I do not understand what can be better at 5° than at 45° ?
MNMK is offline   Reply With Quote

Old   August 31, 2022, 07:42
Default
  #28
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,922
Rep Power: 28
Gert-Jan will become famous soon enough
The recirculations will have a 3D character. When the segment is just 5°, there is less space to develop in 3D.
However, if these eddies are the phenomena that you want to study, then these are important and your whole approach is wrong. Then you need to step away from this approach. It would be better to add straight parts at inlet and outlet.
But that depends on the question that you want to answer when doing CFD. And I don't know your question yet.
Gert-Jan is offline   Reply With Quote

Old   September 13, 2022, 13:51
Default
  #29
Senior Member
 
Mey
Join Date: Dec 2019
Posts: 116
Rep Power: 6
MNMK is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
The recirculations will have a 3D character. When the segment is just 5°, there is less space to develop in 3D.
However, if these eddies are the phenomena that you want to study, then these are important and your whole approach is wrong. Then you need to step away from this approach. It would be better to add straight parts at inlet and outlet.
But that depends on the question that you want to answer when doing CFD. And I don't know your question yet.
I have made some backups, and I have also imported them to Post. I should say, I have tried, by looking at the Residual trend during the calculation , to reduce the time scale from 6e-4 to 1e-4.Because I see the more fluctuations in my DP as a monitor point during my calculation. I have attached result photos. The pressure changed dramatically. As can be seen in the third photo, the direction of the velocity vector will be reversed.!! Is it come because of higher Time steps or there changes?? Is there any advice about how I can reach the right and convergent result for such a case?
Attached Images
File Type: png Capture2.PNG (47.4 KB, 9 views)
File Type: png Capture3.PNG (46.9 KB, 9 views)
File Type: jpg Capture4.jpg (125.7 KB, 10 views)

Last edited by MNMK; September 15, 2022 at 05:37.
MNMK is offline   Reply With Quote

Old   September 15, 2022, 11:23
Default
  #30
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,922
Rep Power: 28
Gert-Jan will become famous soon enough
The problems you face have nothing to do with time step size.
You want to study the flow in a corrugated pipe using translational periodic boundaries.
But your curved outerwalls are much to close to the periodic boundaries. The curved outerwalls create recicurlations close to the outlet, that as a result end up in the inlet since both are connected. Therefore you will never find a converged and reliable answer.
As I mentioned before, you should step away from this method unless you add straight parts at the inlet and outlet of at least 5D length. That will reduce the effect of the recirculations.
Gert-Jan is offline   Reply With Quote

Old   September 16, 2022, 04:05
Default
  #31
Senior Member
 
Mey
Join Date: Dec 2019
Posts: 116
Rep Power: 6
MNMK is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
The problems you face have nothing to do with time step size.
You want to study the flow in a corrugated pipe using translational periodic boundaries.
But your curved outerwalls are much to close to the periodic boundaries. The curved outerwalls create recicurlations close to the outlet, that as a result end up in the inlet since both are connected. Therefore you will never find a converged and reliable answer.
As I mentioned before, you should step away from this method unless you add straight parts at the inlet and outlet of at least 5D length. That will reduce the effect of the recirculations.
Dear Gert,

I am not convinced of your idea. I have tried a better timestep (smaller) and it works. It takes longer to converge, about 5000 iterations. Please look at the attached photos. I appreciate it when you tell me your opinion.

regards,
Attached Images
File Type: png Capture2.PNG (142.1 KB, 4 views)
File Type: png Capture3.PNG (86.7 KB, 3 views)
File Type: png Capture4.PNG (79.0 KB, 3 views)
MNMK is offline   Reply With Quote

Old   September 16, 2022, 04:27
Default
  #32
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,869
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You have to be careful when using very small time steps as that can artificially reduce the reported residuals and make the simulation appear more converged than it actually is.

If you want to see if your small section is accurately modelling the flow then compare the results from your model to a model 10 times longer. Does it give 10 times the pressure drop?

But Gert-Jan is correct when he says that putting periodic boundaries in regions where separations exist is a bad idea and will lead to convergence problems. You should always try to avoid putting boundaries in separations as it always leads to problems.
MNMK likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 16, 2022, 08:35
Default
  #33
Senior Member
 
Mey
Join Date: Dec 2019
Posts: 116
Rep Power: 6
MNMK is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You have to be careful when using very small time steps as that can artificially reduce the reported residuals and make the simulation appear more converged than it actually is.

If you want to see if your small section is accurately modelling the flow then compare the results from your model to a model 10 times longer. Does it give 10 times the pressure drop?

But Gert-Jan is correct when he says that putting periodic boundaries in regions where separations exist is a bad idea and will lead to convergence problems. You should always try to avoid putting boundaries in separations as it always leads to problems.
I appreciate your feedback. I would like to mention some points for other people who have the same questions in the forum :


1.I tried this method with a flat cylinder and I compared the results with another software (Pressure Drop calculator) and the results were so close to each other.

2.Also, I have considered the monitor points (Velocity in/out, Pressure Difference) to monitor the convergence. They were, after 4000 iterations, constant.


However, I try to evaluate the result through experience or longer Geometry in simulation.

regards,
MNMK is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
Boundary condition types for pressure inlet and outlet Sam Phillips OpenFOAM Running, Solving & CFD 5 February 21, 2021 13:45
Can I achieve better convergence? sheaker CFX 12 September 19, 2019 16:36
Turbomachinery Mass imbalance sheaker CFX 12 September 5, 2019 09:09
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20


All times are GMT -4. The time now is 13:38.