How to extract the magnitude of the magnetic flux density at the centroid of each element of the 2D mesh
Dear all,
I need an help for implementing what has already been discussed (maybe) in a previous post. Here goes the link:
https://community.altair.com/community?id=community_question&sys_id=c9c676521b812c94c4dfdbd9dc4bcb6d
Basically, I need to post-process, from a 2D time-stepping simulation, the value of the B field (magnetic flux density) at the centroid (barycenter) of each triangle (element) of my second-order mesh.
1) Is it possible to do this in FLUX 2D?
2) If yes, according to the previous post on the forum (see the link), which macro shall I use (name of the macro)?
Thank you very much in advance for the help!
Marco
Answers
-
Hi,
Yes, it is possible to do it.
The macro is EXPORTAREAAVERAGEVALUE.PFM . As a results:
- An excel file:
- Area of each element
- The average value of the flux density on the barycenter of each element
Thanks.
1 - An excel file:
-
Abdessamed said:
Hi,
Yes, it is possible to do it.
The macro is EXPORTAREAAVERAGEVALUE.PFM . As a results:
- An excel file:
- Area of each element
- The average value of the flux density on the barycenter of each element
Thanks.
Thank you very much Abdesssamed for your fast and kind response.
I saw the description of the macro and it is said that:
"This macro is used to export the coordinates of the first order nodes of each face elements of one or more face regions...".
1) What does "first order nodes" mean in this description? I have a second-order mesh with triangular elements, so I don't think it is related to the mesh order, right?
2) Can I export the 'Mod(B)' quantity or is it just needed to export 'B'?
Thank you again in advance.
Marco
0 - An excel file:
-
Marco Biasion said:
Thank you very much Abdesssamed for your fast and kind response.
I saw the description of the macro and it is said that:
"This macro is used to export the coordinates of the first order nodes of each face elements of one or more face regions...".
1) What does "first order nodes" mean in this description? I have a second-order mesh with triangular elements, so I don't think it is related to the mesh order, right?
2) Can I export the 'Mod(B)' quantity or is it just needed to export 'B'?
Thank you again in advance.
Marco
You are welcome. As mentioned in the attached PDF the goal of the macro is:
- first order nodes of each face elements of one or more face regions (this not related to the mesh order)
- calculate the mean value of a spatial quantity at the barycenter
- area of each face element
Thanks.
0 -
Abdessamed said:
You are welcome. As mentioned in the attached PDF the goal of the macro is:
- first order nodes of each face elements of one or more face regions (this not related to the mesh order)
- calculate the mean value of a spatial quantity at the barycenter
- area of each face element
Thanks.
Thank you again.
Another point: it seems that the macro extracts the data for a single time step of the solution (the current computation step), right? Is it possible to extract those data for each time step in a 'transient' simulation?
Thank you
Marco
0 -
Marco Biasion said:
Thank you again.
Another point: it seems that the macro extracts the data for a single time step of the solution (the current computation step), right? Is it possible to extract those data for each time step in a 'transient' simulation?
Thank you
Marco
Yes you are right. I think there is a way to do it for the step time. I will check and keep you informed.
THanks.
0