importing stl geometry files (cylinder3d)
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › importing stl geometry files (cylinder3d)
- This topic has 9 replies, 2 voices, and was last updated 6 years, 3 months ago by mathias.
-
AuthorPosts
-
October 4, 2018 at 1:07 pm #2000behnamandiParticipant
Hi there.
I have an application similar to cylinder3d problem. However the geometry is different. its a 200micrometer pipe with some structures on it. https://ibb.co/gqZpwz . I have been trying to import it instead of the cylinder3d.stl file. but it does not work. can someone help me realize what im doing wrong. I have read somewhere that i might have to rework the material number part of the code. is this true? Any help would be highly appreciated. The user guide is not very clear for importing stl files, thats why I came here.Thanks in advance
Behnam Andi
October 4, 2018 at 1:23 pm #2943mathiasKeymasterDear Andi,
You can also have a look at the aorta3d example for stl handling. What you need to do is first define the flow domain by geometry primitives (which can be an stl-file but also availabe ones like a cylinder or a cube, see venturi3d example). Then, you need to chance the material numbers also by geometry primitives. We show that step by step by means of a tutorial at our next spring school.
Best
MathiasOctober 4, 2018 at 1:29 pm #2944behnamandiParticipantThanks Mathias,
Do you address phase changing in your spring school as well?
October 4, 2018 at 1:31 pm #2945behnamandiParticipantsorry. im not sure what you mean by primitives
October 4, 2018 at 1:35 pm #2946mathiasKeymaster1/ No, a section on “phase changing” approaches would we to advance for the spring school. We have a section on multi-phase/component methods. See the program here: http://www.openlb.net/spring-school-program
2/ For complex geometires I would directly work with an stl-file and not combine cylinders etc. – but you could.
Mathias
October 4, 2018 at 1:39 pm #2947behnamandiParticipantThats my question exactly. because it takes too much time to do it like the venturie example and that only works for smooth surfaces. in my case, my pipe might not have smooth inner surface. so, i was wondering what the best way and if the material assignment is the only part of the code that i need to modify for the stl file to work.
October 4, 2018 at 1:45 pm #2948mathiasKeymasterYes, the material modification needs to be adapted as well as the setting of boundary conditions. But that needs to be done carefully. I would do it step by step looking at the geometry output file with paraview.
October 4, 2018 at 2:55 pm #2950behnamandiParticipantthanks for the tips. I’ll give it a try and well let you know if it works
October 15, 2018 at 3:29 pm #2956behnamandiParticipantHi again,
I was unable to import my geometry into the code. I keep getting segmentation errors. Is there any documents which explains how to import a specific geometry into a code? this is quite urgent. would appreciate some help. Thanks
October 15, 2018 at 5:09 pm #2957mathiasKeymasterDepending on the actual geometry, you need to change the material numbers “by hand”. That is mentioned in the pdf documentation. We have also a spring school in Feb. 2019 where we explain it step-by-step! Best Mathias
-
AuthorPosts
- You must be logged in to reply to this topic.