How to map loads
Values at nodes can be mapped (interpolated) from a second mesh with the ”map” command (2D and 3D). This second mesh (data source or “master”) is usually available as a result-file from a previous calculation. The ”read” command with the “add” parameter can be used to include this file in the current model. Solver-input files (inp) and result files (frd) can be used as a data source. The command will add an offset to the nodes and elements so that existing nodes and elements will not be overwritten. The original mesh is the target or “slave” of the mapping process. The mapping process will add the interpolated (mapped) values to the dataset(s) which originated from the master mesh. The mapped values can be visualized by selecting the mapped dataset and entity and then by plotting the slave elements or faces with “plot fv slave”. An example of the necessary commands for the mapping process (surfaces to surfaces) is listed below:
REMARK: Be aware that you have to create sets of nodes and
faces for surface mapping! They will be called 'master'
and 'slave'
Open the target mesh with cgx.
Define a set with the slave nodes or faces to which values
should be mapped (for example pressure):
qadd slave t10 (here with a tolerance of 10 deg)
comp slave do (to extend the set by the referenced faces or
nodes)
Then open a set and read the model with the values (pressure):
seto source
read result.frd add
setc
If necessary move 'source' in space to match the position of the
'slave' (see “move”).
Add the faces to the 'source' set
(now only nodes and elements are already stored in 'source'):
comp source do
plot f source
Define the master set:
qadd master t10 (catch the right faces showing the values)
comp master do
Map the values of dataset 1 with:
map slave master surf ds1
Check the mapping with:
ds 1 e 1
plot fv slave
Write the file with the mapped values:
send slave abq pres ds1 e1
Check the file “slave_ds1e1.dlo” with an editor and use it
in an inp-file.
If the master values are not available in either inp or frd format but in any other format which can be read by cgx (isaac, openFoam ..) you may write them in frd format with the ”send” command to be usable as a master.