|
[Sponsors] |
Formatting of wavemaker.dat for Piston-Type Wavemaker |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 31, 2021, 17:18 |
Formatting of wavemaker.dat for Piston-Type Wavemaker
|
#1 |
New Member
Ross Henteleff
Join Date: Jun 2021
Posts: 4
Rep Power: 5 |
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 |
|
September 1, 2021, 04:31 |
|
#2 |
Senior Member
Arun Kamath
Join Date: Nov 2014
Location: Trondheim, Norway
Posts: 265
Rep Power: 14 |
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 |
|
September 1, 2021, 10:53 |
|
#3 |
New Member
Ross Henteleff
Join Date: Jun 2021
Posts: 4
Rep Power: 5 |
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 |
|
|
|
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 01:21 |
[Other] simulation of closing the gate using moving mesh | simin_ds | OpenFOAM Meshing & Mesh Conversion | 8 | April 12, 2019 06:49 |
interFoam/kOmegaSST tank filling with printStackError/Mules | simpomann | OpenFOAM Running, Solving & CFD | 3 | February 17, 2014 18:06 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 15:16 |