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

Formatting of wavemaker.dat for Piston-Type Wavemaker

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2021, 16:18
Default Formatting of wavemaker.dat for Piston-Type Wavemaker
  #1
New Member
 
Ross Henteleff
Join Date: Jun 2021
Posts: 4
Rep Power: 4
RossHenteleff is on a distinguished road
Hi All,


I'm wondering how one should generate an appropriate wavemaker.dat file for use with the piston-type wavemaker. I have been trying a number of methods, namely saving it as a text file in various ways via MS Excel, but when I try to run REEF3D, the wavemaker.dat file is not found. Below you can find my ctrl.txt and the control.txt. Unfortunately, I cannot upload the wavemaker.dat (converted to .txt) file due to its size. Thanks in advance!


Ross Henteleff
Attached Files
File Type: txt ctrl.txt (361 Bytes, 4 views)
File Type: txt control.txt (173 Bytes, 3 views)
RossHenteleff is offline   Reply With Quote

Old   September 1, 2021, 03:31
Default
  #2
Senior Member
 
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 13
kamath is on a distinguished road
In order to use B 92 21- piston wavemaker input, the file should have two columns (without headers), one for time and one for X (as described in the manual).

It is possible that either the export from excel is assigning a different extension to the file name?

If you are on Windows, you can open an empty Wordpad document and paste the excel data. On a Mac, use textedit.
Other steps:

1. Ensure that the file is in the same location as your input files and executables.

2. The extension should be .dat and not .txt

3. Check if the permission settings are blocking it from being read (use the command ll or ls -l) and confirm if the permissions are minimum of: -rw-r--r--

A change in permission settings can occur if you are using the WSL to run the Ubuntu app and transfer the file to the Ubuntu area using the file explorer.
The solution is to change the permission settings using chmod u+r wavemaker.dat

Alternatively, you can use the cp command to copy from your Windows workspace to the Ubuntu workspace.

4. Open the file and look at the contents. are they just two columns with numbers or is it comma separated or has any other delimiter than space or tab?

Assuming the error in the console is "wavemaker.dat not found", I would say your problem is solved with step 1-3.


Other matters:
the O options in control.txt are now deprecated and I recommend using the equivalent S options instead.

I would also recommend B 98 3 (Dirichlet BC)for wave generation with a piston wavemaker input in ctrl.txt

Hope that helps
__________________
Arun
X years with REEF3D
kamath is offline   Reply With Quote

Old   September 1, 2021, 09:53
Default
  #3
New Member
 
Ross Henteleff
Join Date: Jun 2021
Posts: 4
Rep Power: 4
RossHenteleff is on a distinguished road
Hi Mr. Kamath,


The issue was the permissions, thanks for your help! I had an old copy of the manual, I have downloaded the latest version and will update the code appropriately as you have suggested.


Thanks,
Ross
RossHenteleff 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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[Other] simulation of closing the gate using moving mesh simin_ds OpenFOAM Meshing & Mesh Conversion 8 April 12, 2019 05:49
interFoam/kOmegaSST tank filling with printStackError/Mules simpomann OpenFOAM Running, Solving & CFD 3 February 17, 2014 17:06
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 14:16


All times are GMT -4. The time now is 01:27.