CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   REEF3D (https://www.cfd-online.com/Forums/reef3d/)
-   -   DIVEMesh FAQ (https://www.cfd-online.com/Forums/reef3d/234657-divemesh-faq.html)

kamath March 14, 2021 11:54

DIVEMesh FAQ
 
What prerequisites do I need to install and execute DIVEMesh?
Compilation of DIVEMesh requires only the GNU GCC compiler. This is installed as a part of the requirements for REEF3D.

Does DIVEMesh any require third-party software?
No.

How do I define the boundary conditions of my simulation domain?
The input file for DIVEMesh, control.txt, is where the boundary conditions of the simulation domain are defined. This includes the extent of the numerical wave tank, the grid size, grid stretching, wave generation, numerical beach, side and bottom wall boundaries.
You can use the example files for control.txt provided in the Tutorials folder as a template to setup your simulation domain.

How do I include bottom fixed structures in my simulation domain? How do I include a complex structure generated using a CAD software in the domain?
You can build complex fixed structures in the domain using the primitive solids defined in DIVEMesh using the S options. Multiple connected primitive solids will behave as one solid object in the domain.
You can also import complex structures in to the domain using the option S 1. Remember that the file should be in the ASCII format and be named solid.stl for DIVEMesh to recognise it as a file to be represented in the simulation domain. In case you need to convert an STL file from binary to Ascii, open the file in paraview and use the File> Save Data option, chose file type STL and select ASCII when prompted.

This applies only to fixed structures in the domain. For floating structures, refer to the FAQ on REEF3D.

How do I visualise the grid generated in DIVEMesh?
Including B 130 1 in control.txt will output a file grid_spacing.vtk that can be opened in Paraview to get an idea of the grid generated for the simulation. This file, though, does not take into account the presence of the object and you will see simply the grid in the entire domain.

On what faces of the simulation domain can I impose the wave generation boundary condition?
As of now (2021), wave generation boundary condition can only be applied to face 1 (C 11 6), that is the left boundary of the domain.

On what faces of the domain can I use the numerical beach boundary condition?
The beach boundary condition can be applied on all faces of the domain.

How do I include bathymetry in my computational domain?
The G commands (see DiveMESH user manual) in control.txt allows you to include a bathymetry file named as geo.dat. The format of geo.dat is simply three columns of digits containing the x, y and z coordinates.

kamath March 1, 2022 04:10

edit: If you are updating REEF3D or DiveMESH to a new version using
Code:

git pull
then remember to first use:
Code:

make clean
and then use:
Code:

make -j N
where N is the number of cores

to compile the new version of the code.
This ensures that previously created objects do not interfere with new compilation. Not doing this can under many occasions lead to unforeseen errors.

kamath March 1, 2022 04:13

When there is a new release of DiveMESH along with a new release of REEF3D, please update both of them.
In such cases, the new REEF3D is NOT backward compatible with the older DiveMESH.
Therefore, crucial to update both in the case of a double release :)

@Chitrangini July 11, 2023 02:19

geo.dat file
 
Dear Sir,
I want to know if we need to write bathymetry data in ASCII format in geo.dat file?

Thanks

valgrinda July 11, 2023 08:41

Yes, the geo.dat file is in ASCII format: [x y z] coordinates.

@Chitrangini July 12, 2023 03:27

Thank you Sir. I will try that.


All times are GMT -4. The time now is 19:21.