KR398: How to retrieve the values of specific variables at the nodes of your mesh? (Solution ID: 1413)


It is sometimes necessary to retrieve the values of specific variables at the nodes of your mesh. This could be done by looping over cells/faces and accessing the interpolated data at the nodes.

The UDF (DEFINE_ON_DEMAND) included in this solution provides an example for accessing pressure data on the nodes of a boundary surface.
Before executing the UDF, please make sure:

1. Data is available (case is initialized/ solved/ data file is read)
2. The correct boundary zone ID is provided
3. The correct field variable name is provided

Source code is attached below.





Show Form
No comments yet. Be the first to add a comment!