C.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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::C
28
29Description
30 Graphite solid properties
31
32SourceFiles
33 C.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef solid_C_H
38#define solid_C_H
39
40#include "solidProperties.H"
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
46
47/*---------------------------------------------------------------------------*\
48 Class C Declaration
49\*---------------------------------------------------------------------------*/
51class C
52:
53 public solidProperties
54{
55
56public:
57
58 //- Runtime type information
59 TypeName("C");
60
61
62 // Constructors
63
64 //- Construct null
65 C();
66
67 //- Construct from dictionary
68 C(const dictionary& dict);
69
70 //- Construct and return clone
71 virtual autoPtr<solidProperties> clone() const
72 {
74 }
75
76
77 // I-O
78
79 //- Write the function coefficients
80 void writeData(Ostream& os) const;
81
82 //- Ostream Operator
83 friend Ostream& operator<<(Ostream& os, const C& s);
84};
85
86
87Ostream& operator<<(Ostream& os, const C& s);
88
89
90// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91
92} // End namespace Foam
93
94// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95
96#endif
97
98// ************************************************************************* //
Graphite solid properties.
Definition: C.H:53
void writeData(Ostream &os) const
Write the function coefficients.
Definition: C.C:66
TypeName("C")
Runtime type information.
virtual autoPtr< solidProperties > clone() const
Construct and return clone.
Definition: C.H:70
friend Ostream & operator<<(Ostream &os, const C &s)
Ostream Operator.
C()
Construct null.
Definition: C.C:43
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
The thermophysical properties of a solid.
OBJstream os(runTime.globalPath()/outputName)
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))
Namespace for OpenFOAM.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Definition: boundaryPatch.C:83
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73