In this article we will be learning to get a scalar value from an arbitrary plane that is the offset of a boundary in a field function to be used for calculations or to set up a boundary condition.
Remember that if we are going to directly set a scalar from a surface or volume to another, or we have the option to remesh and create a specific boundary for this purpose, a data mapper will be a simple and efficient way to do this operation, this article describes a method to use an arbitrary plane when no surface is available to extract a scalar as a variable for more complex calculations.
1- Create a new derived part by right clicking on the Derived Parts node and selecting: New Part>Section>Plane...
Be careful to position this plane normal to the boundary where you will be evaluating the field function, check that the origin is in the place where you want to extract the values and remember to select the region to extract the values on the "Parts" option.
2- Create a new table that extracts these values:
Expand the Tools node and right click on the Tables node and select: New Table>XYZ Internal Table
In the newly created table select the field function to be extracted.
And in parts select the plane created in step 1
Rename this table if desired to anything for your reference.
Don't forget to enable the auto extract function with a trigger every iteration or timestep (depending on what works for you)
This function will "interpolate" the values of the derived part to any boundary in the direction of the offset, but it will not modify them as it will only set the closest exact value, which in this case is the exact face down of each cell.
In this example the Field Function name is "_ExtractedTemperature" The table name is "_ExtractedT" and the Scalar to extract is "Temperature"