Reading in expernal pressure field

I want to read in an external pressure field, e.g., from a CFD analysis, and apply it to a mechanical analysis (to compute nodal forces). I’d like to use the <pressure> BC, but what external input is most suitable for this? I thought about <grid> or <fileData>. Are there any examples for this?

Hey! In this case I would recommend using the <grid>tag. There are multiple examples in the Testsuite (not directly for your case, but you can use the same strategy for your case), see for example:
ConsInterp3d.xml
DipolSrcLocation
If the data is already available on the same grid, you can use the default (internal grid), otherwise you need to use the automatic interpolation feature covered by the <externalGrid> tag. Hope this helps!

I have done this in my simulations using grid and default grid, e.g.,

<pressure name="ZZZ_Housing_Folds_bottom_front__Surf2">

<grid dofs="all">

<defaultGrid quantity="fluidMechPressure" dependtype="GENERAL" definedOn="node"/>

</grid>

</pressure>

Beforehand, I interpolate the pressure to the corresponding surfaces using cfsDat / pyCFS, and use the grid file containing the source data as default grid