Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
8197dd3c
Commit
8197dd3c
authored
Jul 15, 2010
by
mattijs
Browse files
ENH: plane : added dictionary writing
parent
c05ac806
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/primitiveShapes/plane/plane.C
View file @
8197dd3c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-200
9
OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-20
1
0 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -440,6 +440,19 @@ Foam::point Foam::plane::planePlaneIntersect
}
void
Foam
::
plane
::
writeDict
(
Ostream
&
os
)
const
{
os
.
writeKeyword
(
"planeType"
)
<<
"pointAndNormal"
<<
token
::
END_STATEMENT
<<
nl
;
os
<<
indent
<<
"pointAndNormalDict"
<<
nl
<<
indent
<<
token
::
BEGIN_BLOCK
<<
incrIndent
<<
nl
;
os
.
writeKeyword
(
"basePoint"
)
<<
basePoint_
<<
token
::
END_STATEMENT
<<
nl
;
os
.
writeKeyword
(
"normalVector"
)
<<
unitVector_
<<
token
::
END_STATEMENT
<<
nl
;
os
<<
decrIndent
<<
indent
<<
token
::
END_BLOCK
<<
endl
;
}
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
bool
Foam
::
operator
==
(
const
plane
&
a
,
const
plane
&
b
)
...
...
src/OpenFOAM/meshes/primitiveShapes/plane/plane.H
View file @
8197dd3c
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 1991-200
9
OpenCFD Ltd.
\\ / A nd | Copyright (C) 1991-20
1
0 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -182,6 +182,9 @@ public:
//- Return the cutting point between this plane and two other planes
point
planePlaneIntersect
(
const
plane
&
,
const
plane
&
)
const
;
//- Write to dictionary
void
writeDict
(
Ostream
&
)
const
;
// friend Operators
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment