OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

solidParticleI.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00028 
00029 inline Foam::solidParticle::trackData::trackData
00030 (
00031     solidParticleCloud& spc,
00032     const interpolationCellPoint<scalar>& rhoInterp,
00033     const interpolationCellPoint<vector>& UInterp,
00034     const interpolationCellPoint<scalar>& nuInterp,
00035     const vector& g
00036 )
00037 :
00038     spc_(spc),
00039     rhoInterp_(rhoInterp),
00040     UInterp_(UInterp),
00041     nuInterp_(nuInterp),
00042     g_(g)
00043 {}
00044 
00045 
00046 inline Foam::solidParticle::solidParticle
00047 (
00048     const Cloud<solidParticle>& c,
00049     const vector& position,
00050     const label celli,
00051     const scalar d,
00052     const vector& U
00053 )
00054 :
00055     Particle<solidParticle>(c, position, celli),
00056     d_(d),
00057     U_(U)
00058 {}
00059 
00060 
00061 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00062 
00063 inline Foam::solidParticleCloud& Foam::solidParticle::trackData::spc()
00064 {
00065     return spc_;
00066 }
00067 
00068 inline const Foam::interpolationCellPoint<Foam::scalar>&
00069 Foam::solidParticle::trackData::rhoInterp() const
00070 {
00071     return rhoInterp_;
00072 }
00073 
00074 inline const Foam::interpolationCellPoint<Foam::vector>&
00075 Foam::solidParticle::trackData::UInterp() const
00076 {
00077     return UInterp_;
00078 }
00079 
00080 inline const Foam::interpolationCellPoint<Foam::scalar>&
00081 Foam::solidParticle::trackData::nuInterp() const
00082 {
00083     return nuInterp_;
00084 }
00085 
00086 inline const Foam::vector& Foam::solidParticle::trackData::g() const
00087 {
00088     return g_;
00089 }
00090 
00091 
00092 inline Foam::scalar Foam::solidParticle::d() const
00093 {
00094     return d_;
00095 }
00096 
00097 inline Foam::scalar Foam::solidParticle::wallImpactDistance(const vector&) const
00098 {
00099     return 0.5*d_;
00100 }
00101 
00102 inline const Foam::vector& Foam::solidParticle::U() const
00103 {
00104     return U_;
00105 }
00106 
00107 
00108 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd