CaCO3.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::CaCO3
28 
29 Description
30  Calcium carbonate (limestone)
31 
32 SourceFiles
33  CaCO3.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef Foam_solid_CaCO3_H
38 #define Foam_solid_CaCO3_H
39 
40 #include "solidProperties.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class CaCO3 Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class CaCO3
52 :
53  public solidProperties
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("CaCO3");
59 
60 
61  // Constructors
62 
63  //- Default construct
64  CaCO3() noexcept;
65 
66  //- Construct from dictionary
67  explicit CaCO3(const dictionary& dict);
68 
69  //- Return a clone
70  virtual autoPtr<solidProperties> clone() const
71  {
72  return solidProperties::Clone(*this);
73  }
74 
75 
76  // I-O
77 
78  //- Write the function coefficients
79  void writeData(Ostream& os) const;
80 
81  //- Ostream Operator
82  friend Ostream& operator<<(Ostream& os, const CaCO3& s);
83 };
84 
85 
86 Ostream& operator<<(Ostream& os, const CaCO3& s);
87 
88 
89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 
91 } // End namespace Foam
92 
93 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94 
95 #endif
96 
97 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:130
void writeData(Ostream &os) const
Write the function coefficients.
Definition: CaCO3.C:59
virtual autoPtr< solidProperties > clone() const
Return a clone.
Definition: CaCO3.H:73
CaCO3() noexcept
Default construct.
Definition: CaCO3.C:36
friend Ostream & operator<<(Ostream &os, const CaCO3 &s)
Ostream Operator.
TypeName("CaCO3")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:56
const direction noexcept
Definition: scalarImpl.H:265
static autoPtr< solidProperties > Clone(const Derived &prop)
Clone solidProperties.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Definition: boundaryPatch.C:77
The thermophysical, mechanical properties of a solid.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Calcium carbonate (limestone)
Definition: CaCO3.H:46
Namespace for OpenFOAM.