Jump to content
Mr. Nozaki Fumiya

How to set solid name with STL (OpenFOAM) export

Recommended Posts

Hi,

 

Is it possible to define the solid name of STL(OpenFOAM) in CAESES?

The default names are |trimesh0, |trimesh1, and so on.

 

This functionality is not indispensable since we can rename the solid using a script

but it would be very convenient to be able to define STL's solid names.

 

Best Regards,

Fumiya

Share this post


Link to post
Share on other sites

Hi Fumiya,

 

The groups in the export are distinguished by color and therefore can not be addressed by name independently. If you have an idea how this could be controlled- please post it here.

 

Thanks

Claus

Share this post


Link to post
Share on other sites
Hi Claus,
 
I think I and many users assign the same color to the surfaces
if we want to set the same boundary conditions on them in our CFD simulations.
 
Here are my ideas.
  • If there is only one surface that is assigned one color, we can call the solid of the surface by its surface name.
  • If there are some surfaces that are assigned one color, we can call the solid of the surfaces by the name of the surface that appears first in trimesh sources list.

Or,

  • it would be very convenient if we can set the color and solid name in the Display / Export Options of trimesh.
 
I think there must be a better way.
I'll welcome any comments or suggestions on above ideas!
 
Thank you for your consideration.
Fumiya

Share this post


Link to post
Share on other sites

Hi,

 

it is quite easy to set solid names in stl-files. Just create a new color and assigne the solid name to the color, let's say "inlet". Then set the color of the inlet patch to the color "inlet" and export STL(Multi Body). Now the stl-file looks like this:

 

solid inlet
facet normal 0.0182022738298 -0.999834321385 8.37095476786e-05
  outer loop
    vertex 0.107793885811 -8.99435408899 0.638042712216
    vertex 0.210288153997 -8.99254157023 ....

 

However, there are some small drawbacks, seems like you cannot assigne the same name to a geometry object and a color.

 

Cheers,

Klaus

Share this post


Link to post
Share on other sites

Hey,

 

 

However, there are some small drawbacks, seems like you cannot assigne the same name to a geometry object and a color.

 

You are right. The reason is that geometry objects and colors are both objects.

 

Cheers,

 

Karsten

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...