CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > REEF3D

How to add 'stl' file in reef3d

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kamath

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2021, 03:16
Default How to add 'stl' file in reef3d
  #1
New Member
 
Debasish Dutta
Join Date: Apr 2019
Location: India
Posts: 5
Rep Power: 7
debasish91 is on a distinguished road
Sir, I want to know that how can I add complex geometry in reef3d as 'stl' format. If I make complex geometry in a CAD software and export it to .stl file, then how can I import it to reef3d.
debasish91 is offline   Reply With Quote

Old   April 17, 2021, 08:45
Default
  #2
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
1. name your .stl file as "solid.stl" and put it in the working directory.

2. add following line to the control.txt
S 1

3. run DIVEMesh for preprocessing

check the DIVEMesh user manual section 1.9 for more solid geometry options...
mzzmrt is offline   Reply With Quote

Old   April 17, 2021, 11:34
Default
  #3
New Member
 
Debasish Dutta
Join Date: Apr 2019
Location: India
Posts: 5
Rep Power: 7
debasish91 is on a distinguished road
Thank you. Do i need to import whole domain with complex geometry or i have to import only structure?
debasish91 is offline   Reply With Quote

Old   April 17, 2021, 18:56
Default
  #4
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
That would be up to you. You can combine a solid.stl file with other solid entities (see S options) or with natural topography, see G options in DIVEMesh.
__________________
Hans Bihs
Team REEF3D
www.reef3d.com
valgrinda is offline   Reply With Quote

Old   April 18, 2021, 11:28
Default
  #5
New Member
 
Debasish Dutta
Join Date: Apr 2019
Location: India
Posts: 5
Rep Power: 7
debasish91 is on a distinguished road
Thank you sir
debasish91 is offline   Reply With Quote

Old   May 10, 2021, 05:39
Question
  #6
New Member
 
songmuqing
Join Date: Aug 2020
Posts: 8
Rep Power: 6
songmuqing is on a distinguished road
Hi,

Have you solved your problem? I have encountered the same problem as you.

I want to simulate the erosion of a complex bridge pier in the water. And I want to add this structure to a specific position of the rectangle, but I don't know how to set it. Or how did you solve this problem.

Thanks in advance.
songmuqing is offline   Reply With Quote

Old   May 10, 2021, 08:20
Default
  #7
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 14
kamath is on a distinguished road
Without knowing further details, use:
S 1 1
to include your stl file in the grid generation

Use:

S 7 x y z

to move the structure to where you want it to be. The stl file has a value for that defines the origin of the coordinates in that file. The x y z values in S 7 help you translate (move without rotation) the origin of the imported stl file so that you can place it where you want it to be
Hope that helps
songmuqing likes this.
__________________
Arun
X years with REEF3D
kamath is offline   Reply With Quote

Old   May 10, 2021, 23:47
Default
  #8
New Member
 
songmuqing
Join Date: Aug 2020
Posts: 8
Rep Power: 6
songmuqing is on a distinguished road
Thank you sir. I have solved this problem. :D

Last edited by songmuqing; May 11, 2021 at 23:09.
songmuqing is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[OpenFOAM.com] swak4foam compiling issues on a cluster saj216 OpenFOAM Installation 5 January 17, 2023 17:05
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32


All times are GMT -4. The time now is 04:15.