AiryI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2017-2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "Airy.H"
27 
28 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
29 
31 (
32  const scalar t
33 ) const
34 {
35  return AiryCoeffs(depth_, amplitude_->value(t), length_, g());
36 }
37 
38 
40 {
41  return AiryCoeffs(depth_, amplitude(), length_, g());
42 }
43 
44 
45 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
46 
47 inline Foam::scalar Foam::waveModels::Airy::depth() const
48 {
49  return depth_;
50 }
51 
52 
53 inline Foam::scalar Foam::waveModels::Airy::amplitude(const scalar t) const
54 {
55  return amplitude_->value(t);
56 }
57 
58 
59 inline Foam::scalar Foam::waveModels::Airy::amplitude() const
60 {
61  return amplitude_->value(great);
62 }
63 
64 
65 inline Foam::scalar Foam::waveModels::Airy::length() const
66 {
67  return length_;
68 }
69 
70 
71 inline Foam::scalar Foam::waveModels::Airy::phase() const
72 {
73  return phase_;
74 }
75 
76 
77 // ************************************************************************* //
scalar g() const
Get the value of gravity.
Definition: waveModel.H:117
Calculation engine for the Airy wave model and other models that are a correction on top of the Airy ...
Definition: AiryCoeffs.H:52
scalar length() const
Get the length.
Definition: AiryI.H:65
scalar amplitude() const
Get the amplitude at steady state.
Definition: AiryI.H:59
AiryCoeffs coeffs() const
Return the wave coefficients at steady state.
Definition: AiryI.H:39
scalar depth() const
Get the depth.
Definition: AiryI.H:47
scalar phase() const
Get the phase.
Definition: AiryI.H:71