Process when using stl or obj files
Moderator: oliveroxtoby
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
-
- Posts: 7
- Joined: Fri Nov 05, 2021 1:54 pm
Process when using stl or obj files
Hello FC team,
I have been playing with CfdOF, amazing work that's been done this far.
I was wondering what process you would recommend when starting when starting from a geometry in stl or obj format.
I tried the following:
Mesh Design Module
-Import Mesh (obj)
Part module
-Select all part >Create shape from mesh>Convert to solid>Make Compound
CFDOF Module
-Analysis container>Select compound>Create mesh>write mesh case>Run mesher
I don't know if this is correct. It works pretty well for simple geometries, however, on larger models, the step "Exporting the part surfaces" will last very long and eventually hang.
This makes sense, as the geometry is more complicated. During this step, is the geometry being meshed again in the background ? Is there not a way to skip it, since the initial import was an stl/obj ?
Thanks for any help !
A new FC enthusiast.
I have been playing with CfdOF, amazing work that's been done this far.
I was wondering what process you would recommend when starting when starting from a geometry in stl or obj format.
I tried the following:
Mesh Design Module
-Import Mesh (obj)
Part module
-Select all part >Create shape from mesh>Convert to solid>Make Compound
CFDOF Module
-Analysis container>Select compound>Create mesh>write mesh case>Run mesher
I don't know if this is correct. It works pretty well for simple geometries, however, on larger models, the step "Exporting the part surfaces" will last very long and eventually hang.
This makes sense, as the geometry is more complicated. During this step, is the geometry being meshed again in the background ? Is there not a way to skip it, since the initial import was an stl/obj ?
Thanks for any help !
A new FC enthusiast.
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Process when using stl or obj files
Yes, this is the procedure I have been using.Octavarius wrote: ↑Wed Nov 17, 2021 8:31 am Hello FC team,
I have been playing with CfdOF, amazing work that's been done this far.
I was wondering what process you would recommend when starting when starting from a geometry in stl or obj format.
I tried the following:
Mesh Design Module
-Import Mesh (obj)
Part module
-Select all part >Create shape from mesh>Convert to solid>Make Compound
CFDOF Module
-Analysis container>Select compound>Create mesh>write mesh case>Run mesher
I don't know if this is correct. It works pretty well for simple geometries, however, on larger models, the step "Exporting the part surfaces" will last very long and eventually hang.
Yes, it's being re-meshed. Although this could be skipped in the simple case, it is difficult to generalise - for example, what if the imported STL is combined with some other shapes that aren't meshed already? I think it would be a better bet to try to get the meshing step to an acceptably fast solution even in the many-faceted case.This makes sense, as the geometry is more complicated. During this step, is the geometry being meshed again in the background ? Is there not a way to skip it, since the initial import was an stl/obj ?
I tried a few moderately sized geomtries and performance seemed tolerable. If you can share a surface that demonstrates the problem, I would like to experiment a bit.
Thanks!
-
- Posts: 7
- Joined: Fri Nov 05, 2021 1:54 pm
Re: Process when using stl or obj files
Hi,
thanks for your reply.
I have not been able to reproduce this on a non industrial case. I'll keep looking.
The model that fails is not so finely meshed but has many PIDs.
In the meantime is there any way to get more output, in order to find out which surface or operation is causing the issue ?
Thanks!
thanks for your reply.
I have not been able to reproduce this on a non industrial case. I'll keep looking.
The model that fails is not so finely meshed but has many PIDs.
In the meantime is there any way to get more output, in order to find out which surface or operation is causing the issue ?
Thanks!
Re: Process when using stl or obj files
If you don't have the Report View on, you can turn that on. It's under View->Panels. You can also turn on logging by running in your computer's command line. There's a bit more information on that here: https://wiki.freecad.org/Debugging/en
Code: Select all
freecad -l
-
- Posts: 7
- Joined: Fri Nov 05, 2021 1:54 pm
Re: Process when using stl or obj files
Hello again CFDOF team,
I have an example file, starting with an obj. I'm attaching a link below:
https://drive.google.com/file/d/12-0Or3 ... sp=sharing
I follow the process described earlier:
Mesh Design Module
-Import Mesh (obj)
Part module
-Select all part >Create shape from mesh>Convert to solid>Make Compound
CFDOF Module
-Analysis container>Select compound>Create mesh>write mesh case>Run mesher
I have noticed the following:
-the step "create mesh" takes a really long time, about 2 hours, although the geometry is rather simple
-some of the bcs don't seem to be applied on the model. "radiateurbc" for example has an assigned temperature. The surface seems hot but there does not seem to be any natural convection above it
Any thought on what is wrong with this process ?
Many thanks!
I have an example file, starting with an obj. I'm attaching a link below:
https://drive.google.com/file/d/12-0Or3 ... sp=sharing
I follow the process described earlier:
Mesh Design Module
-Import Mesh (obj)
Part module
-Select all part >Create shape from mesh>Convert to solid>Make Compound
CFDOF Module
-Analysis container>Select compound>Create mesh>write mesh case>Run mesher
I have noticed the following:
-the step "create mesh" takes a really long time, about 2 hours, although the geometry is rather simple
-some of the bcs don't seem to be applied on the model. "radiateurbc" for example has an assigned temperature. The surface seems hot but there does not seem to be any natural convection above it
Any thought on what is wrong with this process ?
Many thanks!
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Process when using stl or obj files
The problem seems to be the sheer number of facets in your imported surface (~37000). Re-triangulating this takes a long time. I'll see what can be done about that, but a quick fix here would be to use Part | Create a copy | Refine shape. This will combine all the planar facets and hugely reduce their number.Octavarius wrote: ↑Tue Apr 05, 2022 9:56 pm I have noticed the following:
-the step "create mesh" takes a really long time, about 2 hours, although the geometry is rather simple
The allocation of BCs seems fine, and the result looks sensible to me. The radiator draws air upward from the inlet, but it can't go anywhere above that because of the solid roof. Maybe you indended this to be an opening?-some of the bcs don't seem to be applied on the model. "radiateurbc" for example has an assigned temperature. The surface seems hot but there does not seem to be any natural convection above it :?
-
- Posts: 7
- Joined: Fri Nov 05, 2021 1:54 pm
Re: Process when using stl or obj files
As for the results, I'm getting something like this: A colleague of mine ran the same case on another software and gets a very large chimney effect over the radiator. I don't have any experimental data, so I have no idea which one is the closest to reality. I'm just surprised no to see this chimney effect.oliveroxtoby wrote: ↑Wed Apr 06, 2022 9:18 amThe problem seems to be the sheer number of facets in your imported surface (~37000). Re-triangulating this takes a long time. I'll see what can be done about that, but a quick fix here would be to use Part | Create a copy | Refine shape. This will combine all the planar facets and hugely reduce their number.Octavarius wrote: ↑Tue Apr 05, 2022 9:56 pm I have noticed the following:
-the step "create mesh" takes a really long time, about 2 hours, although the geometry is rather simple
Hello. Many thanks for the suggestion. At what stage would you use the refine shape command ? I tried to use it right after the "Create shape from mesh" and after "Convert to solid" but in both case, Freecad will crash.
The allocation of BCs seems fine, and the result looks sensible to me. The radiator draws air upward from the inlet, but it can't go anywhere above that because of the solid roof. Maybe you indended this to be an opening?-some of the bcs don't seem to be applied on the model. "radiateurbc" for example has an assigned temperature. The surface seems hot but there does not seem to be any natural convection above it
Thanks!
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Process when using stl or obj files
Sorry, I was talking nonsense here - viewing the model upside-down!oliveroxtoby wrote: ↑Wed Apr 06, 2022 9:18 am The allocation of BCs seems fine, and the result looks sensible to me. The radiator draws air upward from the inlet, but it can't go anywhere above that because of the solid roof. Maybe you indended this to be an opening?
- oliveroxtoby
- Posts: 837
- Joined: Fri Dec 23, 2016 9:43 am
- Location: South Africa
Re: Process when using stl or obj files
The main issue here should be resolved now. Takes about a minute for me now.Octavarius wrote: ↑Tue Apr 05, 2022 9:56 pm -the step "create mesh" takes a really long time, about 2 hours, although the geometry is rather simple