Scoring an unstructured mesh via USRBIN

Dear FLUKA experts,

I’m encountering an issue with scoring results directly on an unstructured mesh.

Setup:

  • Generated a .cdb file with ANSYS,
  • Successfully imported the mesh using the UMESH card,
  • Simulation ran without errors.

Current status:

  • USRBIN scoring with X-Y-Z works perfectly,
  • But I am unable to plot directly on the UMESH with a USRBIN WHAT(1) = 19 because Y and Z binning dimension is 1 and X binning dimension is equal to the number of elements in the mesh.
  • In the .bnn.lis file the bins correspond the element -id, no information on x-y-z.

How can I score on the actual mesh from ansys ? Any help is appreciated !

Cheers,
Rémi

Dear Rémi,

You can display USRBIN UMESH scoring results in Flair’s Geometry tab similar to standard XYZ or Rho-Phi USRBIN types.

However, displaying such things as the averaged 2D projection in XY, YZ, XZ planes or 1D projection via the Plot tab is less straightforward for unstructured tetrahedral meshes compared to structured meshes, since they may have complex shapes in each section plane. As a result, any projection would involve significant interpolation and spatial averaging, which can distort physical interpretation, especially if the mesh is highly heterogeneous.

Instead, by default, 2D projection plots colour-mapped values for each tetrahedral element, which you also saw in the .bnn.lis file.

WHAT(1) = 19.0 : Per element in an unstructured mesh.

But you can still plot 1D Min, Max and Traces, which have more sensible interpretation for UMESH structures.

How can I score on the actual mesh from ansys ?

Currently, we can’t write directly back into the original .cdb mesh.
Internally, scoring is done for an equivalent tetrahedral mesh digested by Flair and FLUKA.
However, values in .bnn.lis are still computed and mapped back to the original .cdb mesh elements

For clarification, do you want to load these values back into ANSYS and assign to mesh elements?

Cheers,
Volodymyr

Dear Volodymyr,

Thanks a lot for the help, I displayed my results in the Geometry Tab.

Yes I want to import these values back to ANSYS. So far I reshaped with my own script the .bnn.lis file to import the data via External Data in ANSYS (reshaped in two columns: element ID and power density). Now the workflow works perfectly but is there another way more straightforward ?

Cheers,
Rémi

Dear @remi.martinie

Simply add this line to the extra commands window in Plot tab for your USRBIN plot:

!awk '{print $2+1, $3}' Umesh_scoring_plot.dat > ansys.dat

Where Umesh_scoring_plot is the name of your plot here:

You can also apply the normalization for $3 to convert deposited energy to power.

Cheers,
Volodymyr

1 Like

Dear Volodymyr,

Thanks a lot, problem solved !

Cheers,
Rémi

1 Like