|
[Sponsors] |
August 3, 2012, 17:35 |
|
#121 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Nima,
Please consider the content of the wiki. To make it short, you need to run setWaveParameters to generate the needed files. If the wiki is not sufficiently clear, I encourage you to make the needed modifications. Kind regards, Niels |
|
August 11, 2012, 14:44 |
waveFoam tutorials
|
#122 |
New Member
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 14 |
Hi
I'm new to using any sort of CFD software and openFoam. I have managed to install the waveFoam package and it runs. However when I use paraFoam to view the results it seems as though no processing has been done. The results seem to be initial conditions. I have tried running a few tutorials. I'm not sure where to start on solving this issue... Thanks _________________ Regards, Ross |
|
August 13, 2012, 02:48 |
|
#123 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning Ross,
Welcome to the Forum. You say that you have been running a few tutorials; are these the tutorials in waves2Foam or standard OF tutorials? Anyway, I would recommend that you start trying the tutorials in the User Guide and especially focus on successful visualisation of the results. If it proves unsuccessful, then please search the forum on problems with paraFoam. On the other hand, if successful, it might be a problem with your installation of waves2Foam, but you are required to give a lot more information, since your above description is too general (e.g. OF-version, did you follow the installation procedure on the wiki, how did you manage to create waveFoam if you are running OF2.0/OF2.1, etc). Kind regards, Niels |
|
August 13, 2012, 05:59 |
|
#124 | |
New Member
Nima
Join Date: Feb 2012
Location: Perth, Western Australia
Posts: 13
Rep Power: 14 |
Quote:
seems a bit strange ! do you have all the time directories made in the case directory? have you checked time step write interval in controlDict file? Regards Nima |
||
August 13, 2012, 13:45 |
|
#125 |
New Member
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 14 |
Hi Niels
I have done the standard tutorials in OF 2.1. I installed OF 1.7.1 in order to make the waves2Foam imstallation simpler for myself. Are the usergiude tutorials ones for waves2Foam? If so I will try and do those ones, otherwise I think I should go through the OF tutorials more thoroughly. Yes I followed the wiki installation. I tried my best to follow the instructions to create waveFoam. When I run waveFoam it completes the computation much much quicker than any OF tutorial I have run before. Maybe I have not created waveFoam properly. Hi Nima I think I did, my knowledge is very limited in this but I had a look over the controldict file and it all seemed ok, time step etc. The time directory is that the initial conditions i.e. at t=0? Regards Ross |
|
August 13, 2012, 14:12 |
|
#126 |
New Member
ross
Join Date: Aug 2012
Posts: 16
Rep Power: 14 |
Hi again
Just thought I'd try to give an idea of what I am trying to do with OF. I want to model a 2D hydrofoil in a wave tank. Thanks Ross |
|
August 13, 2012, 16:56 |
|
#127 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Ross,
If you have tried the standard tutorial "damBreak", then you will see that you will get a directory for each time data is outputted. If you do not have those in the output, when running waveFoam, then something is wrong. If you are running in 1.7.1. then all you need to do is to execute "./Allwmake" to compile library, utilities and solvers and nothing else; and it has proven to work. Which tutorials in waves2Foam have you been running? / Niels |
|
September 6, 2012, 11:55 |
combinedWaves waveType
|
#128 |
Member
Ed Ransley
Join Date: Jul 2012
Posts: 30
Rep Power: 14 |
Dear All,
I hope is the correct place to post my question, I apologise for interrupting any current conversations. I'm trying to get the combinedWaves waveType to work at the inlet of my 2D wave tank with the ultimate goal of creating a focussed wave packet which focussed down the tank (ideally an addition waveType with parameters such that the NewWave formulation could be implemented would be great) but in the mean time I'd like to add multiple stokes waves together with different phases but I cannot decipher the wiki (below) "+++ Example - setWaveParameters and Running +++ waveType combinedWaves; combinedWaveNames <workList>; // A list of names of the other sub-dictionaries without the Coeffs-part" Can anyone explain how I should set up my wavefoam file to solve this problem? Thanks Ed |
|
September 7, 2012, 02:38 |
|
#129 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning Ed,
What you need to do is define something similar to this: Code:
myWaveCoeffs { waveType combinedWaves; combinedWaveNames (wave0 wave1 wave2 <ETC>); } wave0Coeffs { waveType <>; and all relevant data } wave1Coeffs { waveType <>; and all relevant data } wave2Coeffs { waveType <>; and all relevant data } <ETC> Kind regards, Niels |
|
September 14, 2012, 16:49 |
|
#130 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Niels,
I attached a svn diff patch to add a waveFoam solver based on the current OpenFOAM 2.1.x version of interFoam, basically following the directions on the wiki. Thought this might help people get started with waves2foam, without having to copy and modify a handful of code if they happen to use 2.1.x. Cheers, Kevin |
|
September 17, 2012, 03:43 |
|
#131 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning Kevin,
Thank you for the patch. Before adding it to the svn, I would like to discuss it a bit, since the lack of a release from my side is based on the question: - What is it worth to have a solver, when none of the tutorials work with 2.0/2.1? (Here I am thinking of incorrect fvSolution, possible extension of Allrun, etc.) Any input on this is most appreciated. Furthermore, as I am not running 2.0/2.1, a list of problems in the tutorials would be very valuable. Kind regards, Niels |
|
September 17, 2012, 12:00 |
|
#132 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Niels,
Yes, I agree ideally all the tutorials should be updated at the same time as the solvers for 2.0/2.1. I just updated the waveFlume tutorial (modify Allrun, added fvSchemes.21, fvSolution.21), see attached for a patch including these changes. I ran into 2 problems when trying to run the waveFlume tutorial under 2.1.x
Kevin |
|
September 18, 2012, 03:39 |
|
#133 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Kevin,
Thanks a lot. The patch was exactly the answer I was hoping for ) I will make sure to make an update of the repository within the near future. Are there any affiliation, which you would like me to put in the CONTRIBUTORS file? / Niels |
|
September 18, 2012, 12:18 |
|
#134 |
Senior Member
Kevin Smith
Join Date: Mar 2009
Posts: 104
Rep Power: 17 |
Great, thank you Niels!
I sent you a private message in regards to contributors file. Kevin |
|
September 20, 2012, 05:11 |
|
#135 |
New Member
Jan Löhrmann
Join Date: Sep 2010
Posts: 21
Rep Power: 16 |
Dear Nils, dear Björn,
I've been reading your posts regarding the problem of combining stokesFirst and potentialCurrent. As I would like to simulate a ship with forward speed in incoming waves, I'd be very much interested if there have been any results regarding the issues mentioned by Björn about the discrepancy in amplitude and period. Is there a working setWaveProperties file somewhere? Or is there any other possibility to consider a forward speed within waveFoam? Best regards Jan |
|
September 20, 2012, 23:07 |
Solitary and Cnoidal Wave Makers
|
#136 |
New Member
Masoud Hayatdavoodi
Join Date: Sep 2012
Location: University of Hawaii
Posts: 4
Rep Power: 14 |
Hi Niels,
What solution of Solitary wave did you use in the Solitary wave-maker? I mean, where did you get the equations to specify eta, p, and horizontal and vertical velocities? Could you please refer me to the reference you used? Also, I know you used KdV solution for the Cnoidal wave-maker, could you give me a reference for this as well. It is just not clear to me why p (pressure) needs to be specified in the Solitary wave-maker but not in the Cnoidal wave-maker. Thank you for all your great work. Very helpful package. Masoud |
|
September 21, 2012, 04:52 |
|
#137 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Massoud
The discussion of the pressure can be found on the Wiki describing the tutorial for the solitary wave. With respect to documentation, the same is used for cnoidal and solitary theory, and you can find the reference in cnoidalFirst.H. Kind regards, Niels |
|
September 23, 2012, 15:59 |
|
#138 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Kevin,
Are you sure that the files you have sent me are from a 2.1.0 distribution? The reason I am asking is that they do not compile on a freshly installed 2.1.0 distribution from the Ubuntu repository. The compile error is: Code:
Making dependency list for source file waveFoam.C SOURCE=waveFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/transportModels/incompressible/lnInclude -I/opt/openfoam210/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam210/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -DOFVERSION=21 -I./../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/waveFoam.o In file included from waveFoam.C:63: createFields.H: In function ‘int main(int, char**)’: createFields.H:35: error: ‘class Foam::twoPhaseMixture’ has no member named ‘alpha1’ In file included from waveFoam.C:93: UEqn.H:5: error: ‘class Foam::incompressible::turbulenceModel’ has no member named ‘divDevRhoReff’ /opt/openfoam210/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’ make: *** [Make/linux64GccDPOpt/waveFoam.o] Error 1 Kind regards, Niels |
|
September 24, 2012, 11:40 |
|
#139 |
Member
Dennis Kingsley
Join Date: Mar 2009
Location: USA
Posts: 45
Rep Power: 17 |
Niels,
The version of waves2Foam that Kevin sent to you was compiled for the bleeding edge 2.1.1 git repository. If you need a 2.1.0 version, he can do that when he gets back from travel next week. Dennis |
|
September 24, 2012, 11:57 |
|
#140 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Dennis
So that would mean that the solvers compile differently from 2.1.0 to 2.1.1? In that case I am very reluctant to distribute a solver in waveFoam, because it will definitely create even more confusion in my perspective. Here the guidelines on the wiki will do better. Do you agree? However, I will update the tutorials with the missing files, so there will not be any problems running them. Kind regards, Niels |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
Re-Project topics | protocol | STAR-CCM+ | 0 | March 22, 2016 06:25 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:18 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:14 |
Error: "Cannot find file points" related to changing parallelized code to serial? | Suyf | OpenFOAM Running, Solving & CFD | 0 | February 12, 2015 05:31 |