Skip to content
GitLab
Menu
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
aef9e8ba
Commit
aef9e8ba
authored
Jan 17, 2011
by
Andrew Heather
Browse files
ENH: Only read write injection props if running transient
parent
eaef8d48
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/submodels/Kinematic/InjectionModel/InjectionModel/InjectionModel.C
View file @
aef9e8ba
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -34,6 +34,11 @@ using namespace Foam::constant::mathematical;
template
<
class
CloudType
>
void
Foam
::
InjectionModel
<
CloudType
>::
readProps
()
{
if
(
!
this
->
owner
().
solution
().
transient
())
{
return
;
}
IOobject
propsDictHeader
(
"injectionProperties"
,
...
...
@@ -60,6 +65,11 @@ void Foam::InjectionModel<CloudType>::readProps()
template
<
class
CloudType
>
void
Foam
::
InjectionModel
<
CloudType
>::
writeProps
()
{
if
(
!
this
->
owner
().
solution
().
transient
())
{
return
;
}
if
(
this
->
owner
().
db
().
time
().
outputTime
())
{
IOdictionary
propsDict
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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