Loading...
Searching...
No Matches
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 Foam_solid_C_H
38#define Foam_solid_C_H
39
40#include "solidProperties.H"
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
47/*---------------------------------------------------------------------------*\
48 Class C Declaration
49\*---------------------------------------------------------------------------*/
50
51class C
52:
53 public solidProperties
54{
55public:
56
57 //- Runtime type information
58 TypeName("C");
59
60
61 // Constructors
62
63 //- Default construct
64 C() noexcept;
65
66 //- Construct from dictionary
67 explicit C(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 C& s);
83};
84
85
86Ostream& operator<<(Ostream& os, const C& s);
87
88
89// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90
91} // End namespace Foam
92
93// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94
95#endif
96
97// ************************************************************************* //
static const Foam::dimensionedScalar C("", Foam::dimTemperature, 234.5)
Graphite solid properties.
Definition C.H:49
void writeData(Ostream &os) const
Write the function coefficients.
Definition C.C:59
C() noexcept
Default construct.
Definition C.C:36
TypeName("C")
Runtime type information.
virtual autoPtr< solidProperties > clone() const
Return a clone.
Definition C.H:73
friend Ostream & operator<<(Ostream &os, const C &s)
Ostream Operator.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
static autoPtr< solidProperties > Clone(const Derived &prop)
Clone solidProperties.
solidProperties() noexcept
Default construct.
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).
const direction noexcept
Definition scalarImpl.H:265
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68