-
-
August 22, 2023 at 11:13 amJoeSubscriber
Hi
I would like to specify the outlet boundary pressure profile using a text file for each time step where each text file specifies the pressure at each cell.Â
I have written the attached UDF but it gives the incorrect answer on initialization (though it does compile and load OK). It definitely acknowledges the values in the text file, as they change on the initialization when I change the text file. However, the values it reads are of no obvious relationship to the values in the text file (and of significantly lower magnitude). Once I run the simulation, I get a SIGSEGV mpt accept error. I think there are issues with my UDF but I'm new to them so I would appreciate any advice (I know you can't directly edit).Â
Thanks.Â
-
August 22, 2023 at 3:46 pmRobForum Moderator
Settting a single pressure value with time wouldn't need the files. Setting a boundary using a file would need you to loop over and interpolate the contents of the file to the boundary: it's not as simple as giving the file x, y, z & pressure.Â
What are you trying to mimic?Â
-
August 22, 2023 at 4:15 pmJoeSubscriber
Sorry for the confusion. I would like to specify the full pressure profile on the boundary, not just a single value.Â
Preferably, I want to try and avoid doing interpolation inside the solver to reduce the compute time (and so that I'm sure of the interpolation method). I'm happy to do my own interpolation so that the file I read in will have the exact data for each cell. Then I hope to organise the data in such a way that it is in the same order as the cells are stored in Fluent.
-
August 23, 2023 at 7:58 amRobForum Moderator
You may be better off using profiles and a journal to update the profile & boundary condition every some time steps. Much less complex and the solver will interpolate the profile file automatically.Â
-
August 23, 2023 at 8:59 amJoeSubscriber
Would this not be extremely slow since I need to update the profile at every time step?Â
-
August 23, 2023 at 10:56 amRobForum Moderator
If you need to update the boundary that frequently then you won't be any better off using a UDF. Does the boundary value change that often to need updating at the resolved flow timescale?Â
-
August 23, 2023 at 11:05 amJoeSubscriber
Unfortunately yes. I'm trying to simulate a spinning acoustic mode at the outlet so the whole profile must vary with each timestep.
-
August 23, 2023 at 1:07 pmRobForum Moderator
And you want to update the profile every micro second?Â
-
August 23, 2023 at 1:10 pmJoeSubscriber
Yes - the time step size is in the region of 1e-5 seconds, and the profile changes at each time step.Â
-
August 23, 2023 at 1:23 pmRobForum Moderator
I'm not convinced that's going to work well with the solver in the event of the revised boundary not matching what the solver thinks should be going on: ie you could create a feedback instability. UDF or profiles will work, but you may find it easier to model the next bit too.Â
-
- The topic ‘UDF for time-dependent outlet pressure profile’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- 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
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Script Error
- convergence issue for transonic flow
- RIBBON WINDOW DISAPPEARED
- Running ANSYS Fluent on a HPC Cluster
-
1762
-
635
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.