My research requires applying the pressure field to the surface of the seal WITHIN THE MEMORY. I have read one of the examples in PyMechanical (URL: Inverse-Solving analysis of a rotor fan blade with disk — PyMechanical Embedding Examples (pyansys.com)), it reads the pressure field from an external CSV file and applies to the blade surface. However, this process will cost lots of time in both reading and writing, which I am trying to avoid. In our project, the pressure field is a function of coordinates (x, y, z) and is stored in the memory during the calculation. Is there any way I can apply the pressure field to the object surface without generating external files?
I would appreciate it if anyone could shed some light on my question.