TAGGED: compressor, fluent, porous-zone, udf, udf-fluent
-
-
October 26, 2021 at 4:12 pmsebastiancg26Subscriber
Hi everyone!
Currently, I'm simulating the transient behavior in a reciprocating compressor. For this, I implemented the use of a UDF to open or close the compressor valves through Porous Zone (Changing the viscous resistance) based on a average pressure. This code works great, but the problem is that in the animation of total pressure, the behavior of that pressure is totally uniform, wich doesn't make sense. I would like to ask you if anyone of you knows what is causing this problem and how I can fix it?
October 26, 2021 at 7:08 pmOctober 27, 2021 at 10:46 amRobForum ModeratorWhich solver licence are you using?
October 27, 2021 at 4:57 pmsebastiancg26SubscriberAnsys Student
October 28, 2021 at 10:47 amRobForum ModeratorHas the model run for long enough to see a change, and converged each time step?
October 28, 2021 at 1:53 pmsebastiancg26SubscriberOf course Rob, I've tried many things, but I still can't find any solution..
October 28, 2021 at 4:05 pmRobForum ModeratorCan you plot some more data, eg velocity. Diagnosing from one plot with no idea about what else is set is difficult.
October 29, 2021 at 5:03 pmsebastiancg26SubscriberSure. When I plotted velocity, I realized that the velocity values throughout the simulation were quite low, thus, the Dynamic Pressure values had the same behavior. For this reason, the dynamic pressure values aren't enough to modify the Total Pressure behavior. Next, I will leave the screenshots of Total pressure, Dynamic Pressure and Velocity plots.
November 1, 2021 at 1:29 pmRobForum ModeratorAnd you're using superficial velocity in the porous media. Check static pressure too. I suspect the dP over the porous media is masking the results as the scale is very big.
November 1, 2021 at 2:06 pmsebastiancg26SubscriberNovember 1, 2021 at 4:37 pmRobForum ModeratorYes. Now replot with a range of 0Pa to about 20k Pa.
November 1, 2021 at 5:01 pmsebastiancg26SubscriberIt had the same result..
Theese simulations are just an example, I have been simulating with only one boundary condition (Inlet pressure=100kPa), and the porous media is configured like this:
As I mentioned you, the idea is that the viscous resistance coefficent changes according the pressure in UDF (wich is already finished, and works well), however, now I have been running a series of test to determine the proper porous media setting..
November 1, 2021 at 5:06 pmRobForum ModeratorTry a lower upper limit. Simply, the pressure field is being hidden by the dP over the membrane.
November 1, 2021 at 6:05 pmNovember 2, 2021 at 11:45 amRobForum ModeratorNo need to use alternative. The solver is calculating the flow based on your settings. The porous coefficients are high, so the pressure loss all occurs at the membrane. Depending on the upstream boundary flow must pass through the membrane.
November 2, 2021 at 7:22 pmsebastiancg26SubscriberI need to establish a coefficient that guarantees a total flow (that simulates an open valve) and a coefficient that guarantees the blocking of the flow (that simulates a closed valve), without affecting the behavior of the pressure field in the cylinder. How I can do it? Thanks for all your comments..
November 3, 2021 at 9:30 amRobForum ModeratorPorous media will cause a pressure drop, depending on the external boundary conditions and other flow features it can't stop the flow. That's why the IC tools allow a crank angle activation of TUI commands: we switch surfaces from interior to wall.
We model oil reservoirs with porous media, with 3-400bar behind the system anything will move!
November 3, 2021 at 4:18 pmsebastiancg26SubscriberSo.. Can I switch a surface from interior to wall depending on the pressure instead of the time?
November 3, 2021 at 4:46 pmRobForum ModeratorNot without some horrible UDF scheme calls.
November 3, 2021 at 6:07 pmsebastiancg26SubscriberHow can I do theese scheme calls?
November 4, 2021 at 12:22 pmRobForum ModeratorWith a UDF. Unfortunately if it's not in the UDF manual we can't offer any assistance. Simply, you're making a call to the solver based on a value that the UDF calculates, this isn't straight forward.
November 4, 2021 at 1:20 pmsebastiancg26SubscriberWhat a pity.. So, is there any other way to simulate a flow block?
November 4, 2021 at 3:45 pmRobForum ModeratorGiven it's a piston compressor why not base open/closed on the time?
November 5, 2021 at 5:19 amsebastiancg26SubscriberThis simulation is carried out through "Events"- The events are:
Delete Sliding interface at 0.2 [s] to closing inlet valve.
Create Sliding interface at 0.75 [s] to opening outlet valve.
Delete Sliding interface at 1 [s] to closing outlet valve.
Create Sliding interface at 1.8 [s] to opening inlet valve.
But, the pressure behavior remains the same, it's constant. Why this?
November 5, 2021 at 12:29 pmRobForum ModeratorHave the commands executed? What does the TUI transcript report?
November 5, 2021 at 3:18 pmNovember 8, 2021 at 12:27 pmRobForum ModeratorIf the graph is as above, what are you displaying to not see it in the contours?
November 9, 2021 at 5:39 amsebastiancg26SubscriberActually, I don't know.. however, if the simulation runs without events, it does show a pressure distribution. When the simulation runs with events, the pressure behavior seems constant throughout the area, as I showed you in the images in previous comments.. I clarify that the only modification I made between the two simulations was adding / removing the events. The rest of the configuration remains the same..
This a plot of the pressure behavior in a simulation whitout events..
November 9, 2021 at 1:39 pmRobForum ModeratorEvents are things changing, so will alter the result. If you display with a large scale/range on the plots subtle differences in the flow may be missed.
November 9, 2021 at 2:54 pmNovember 9, 2021 at 4:11 pmRobForum ModeratorThat looks like they're using crank angle to drive the solution: exactly how you've done. However, as you've only shown one graph and an image at the "piston down" it's hard to see what is/isn't working.
November 11, 2021 at 5:12 pmNovember 11, 2021 at 5:26 pmRobForum ModeratorThat looks like the interface creation is doing something weird. Try switching to SIMPLE and use PRESTO!
November 11, 2021 at 7:46 pmNovember 12, 2021 at 12:16 pmRobForum ModeratorAlmost certainly the interface then. The solver setting change was to confirm they weren't to blame. Focus the view around an interface and look at the velocity vectors. Using fluxes see how much mass is passing though an "open" valve.
November 12, 2021 at 1:45 pmsebastiancg26Subscriber
November 12, 2021 at 1:45 pmNovember 12, 2021 at 4:19 pmRobForum ModeratorYou also have moving mesh, are you accounting for the volume change too? Please can you post an image of the mesh? Or did you skip several vectors in the plots?
November 13, 2021 at 2:25 pmNovember 15, 2021 at 2:30 pmRobForum ModeratorMake the mesh a lot finer at the top (and overall) and see what happens.
November 17, 2021 at 4:56 amsebastiancg26SubscriberThat did not influence the effects.. I made a new 0.5 mm quadrilateral mesh, and I changed the step size to 0.0001 s
November 17, 2021 at 2:06 pmsebastiancg26Subscriberthe turbulence model has something to do with it? I use k-w model..
November 17, 2021 at 2:52 pmRobForum ModeratorDoubt it. Monitor flow in, flow out and piston volume. Also monitor the flow over the 3 interface pairs. We should see the latter give a zero result at various points, and if so the inlet/outlet ought to be around zero then too.
Viewing 42 reply threads- The topic ‘RECIPROCATING COMPRESSOR VALVES – POROUS ZONE MIMIC’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Fluent fails with Intel MPI protocol on 2 nodes
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script error Code: 800a000d
- Encountering Error in Heterogeneous Surface Reaction
Top Contributors-
1191
-
513
-
488
-
225
-
209
Top Rated Tags© 2024 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-