Mass or volume in hyperview
Hello. Is there a way to calculate the mass or volume of elements in Hyperview, maybe via TCL commands? In particular I'm interested in checking the mass of an iso surface after an optimization. This is easy enough in Hypermesh and OSSmooth, but it could make things more efficient being able to do the same in Hyperview.
Best Answer
-
bocaj22 said:
Hi Nagahashi,
Thank you for your clarification. Unfortunately, I don't think this is what I'm looking for. The objective function, whether it be mass or volume, is based on the entire design space and elements that have partial densities. I know this is how the optimization works, but after creating an isosurface in Hyperview, we must designate a density threshold to keep or remove elements. I am looking for the mass or volume of all the elements that are kept after applying the threshold, and applying full density to those remaining elements.
However, perhaps this can be done in hypergraph or compose. If I'm able to filter elements based on density, then calculate the volume of those elements, that would suffice. What do you think?
Not exactly a script but this is a workaround to get your volume, and export it to a CSV file.
1
Answers
-
Hi, bocaj22
It depends on the type of optimization you are performing.
Do you want to get the mass of an iso surface by a script?
The best way to do this is to open the sta file and get the information you want with a script.
0 -
Nagahashi Kouta said:
Hi, bocaj22
It depends on the type of optimization you are performing.
Do you want to get the mass of an iso surface by a script?
The best way to do this is to open the sta file and get the information you want with a script.
Hi Nagahashi,
Thank you for your response. Yes I'd like to get the mass of an isosurface via script. This would be from a topology optimization. I don't see a .sta file though. Do you mean .stat, or something else? Can you point me to any resources?
Thanks.
0 -
bocaj22 said:
Hi Nagahashi,
Thank you for your response. Yes I'd like to get the mass of an isosurface via script. This would be from a topology optimization. I don't see a .sta file though. Do you mean .stat, or something else? Can you point me to any resources?
Thanks.
Hi, bocaj22
Sorry for replying late.
What I mean is the .out or .hgdata file, you can query the Objective Function in the two files easily for every iteration.
And there is a better way to do this with hypergraph.
Just change the client from hyperview to hypergraph2D, and open the .hgdata file generated after optimization. Like the picture below, the change of the mass or volume is quiet clear for every iterration.
1 -
Nagahashi Kouta said:
Hi, bocaj22
Sorry for replying late.
What I mean is the .out or .hgdata file, you can query the Objective Function in the two files easily for every iteration.
And there is a better way to do this with hypergraph.
Just change the client from hyperview to hypergraph2D, and open the .hgdata file generated after optimization. Like the picture below, the change of the mass or volume is quiet clear for every iterration.
Hi Nagahashi,
Thank you for your clarification. Unfortunately, I don't think this is what I'm looking for. The objective function, whether it be mass or volume, is based on the entire design space and elements that have partial densities. I know this is how the optimization works, but after creating an isosurface in Hyperview, we must designate a density threshold to keep or remove elements. I am looking for the mass or volume of all the elements that are kept after applying the threshold, and applying full density to those remaining elements.
However, perhaps this can be done in hypergraph or compose. If I'm able to filter elements based on density, then calculate the volume of those elements, that would suffice. What do you think?
0 -
bocaj22 said:
Hi Nagahashi,
Thank you for your clarification. Unfortunately, I don't think this is what I'm looking for. The objective function, whether it be mass or volume, is based on the entire design space and elements that have partial densities. I know this is how the optimization works, but after creating an isosurface in Hyperview, we must designate a density threshold to keep or remove elements. I am looking for the mass or volume of all the elements that are kept after applying the threshold, and applying full density to those remaining elements.
However, perhaps this can be done in hypergraph or compose. If I'm able to filter elements based on density, then calculate the volume of those elements, that would suffice. What do you think?
Not exactly a script but this is a workaround to get your volume, and export it to a CSV file.
1 -
Adriano A. Koga_21884 said:
Not exactly a script but this is a workaround to get your volume, and export it to a CSV file.
Hi Adriano,
Thank you for sharing, that appears to accomplish my goal. I think I can build a script around this process. Thanks!
0