Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
9c9088f1
Commit
9c9088f1
authored
2 years ago
by
Andrew Heather
Committed by
Mark OLESEN
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ENH: CloudSubModelBase - added info() function to set log flag
parent
1f393aef
No related branches found
No related tags found
1 merge request
!583
ENH: added option to control log frequency of lagrangian calculations
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lagrangian/intermediate/submodels/CloudSubModelBase.C
+20
-11
20 additions, 11 deletions
src/lagrangian/intermediate/submodels/CloudSubModelBase.C
src/lagrangian/intermediate/submodels/CloudSubModelBase.H
+5
-2
5 additions, 2 deletions
src/lagrangian/intermediate/submodels/CloudSubModelBase.H
with
25 additions
and
13 deletions
src/lagrangian/intermediate/submodels/CloudSubModelBase.C
+
20
−
11
View file @
9c9088f1
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2022 OpenCFD Ltd.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
This file is part of OpenFOAM.
This file is part of OpenFOAM.
...
@@ -35,7 +36,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase(CloudType& owner)
...
@@ -35,7 +36,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase(CloudType& owner)
:
:
subModelBase
(
owner
.
outputProperties
()),
subModelBase
(
owner
.
outputProperties
()),
owner_
(
owner
)
owner_
(
owner
)
{}
{
this
->
log
=
owner_
.
solution
().
log
();
}
template
<
class
CloudType
>
template
<
class
CloudType
>
...
@@ -57,7 +60,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase
...
@@ -57,7 +60,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase
dictExt
dictExt
),
),
owner_
(
owner
)
owner_
(
owner
)
{}
{
this
->
log
=
owner_
.
solution
().
log
();
}
template
<
class
CloudType
>
template
<
class
CloudType
>
...
@@ -79,7 +84,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase
...
@@ -79,7 +84,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase
modelType
modelType
),
),
owner_
(
owner
)
owner_
(
owner
)
{}
{
this
->
log
=
owner_
.
solution
().
log
();
}
template
<
class
CloudType
>
template
<
class
CloudType
>
...
@@ -90,14 +97,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase
...
@@ -90,14 +97,9 @@ Foam::CloudSubModelBase<CloudType>::CloudSubModelBase
:
:
subModelBase
(
smb
),
subModelBase
(
smb
),
owner_
(
smb
.
owner_
)
owner_
(
smb
.
owner_
)
{}
{
this
->
log
=
owner_
.
solution
().
log
();
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
template
<
class
CloudType
>
Foam
::
CloudSubModelBase
<
CloudType
>::~
CloudSubModelBase
()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
...
@@ -138,6 +140,13 @@ Foam::fileName Foam::CloudSubModelBase<CloudType>::localPath() const
...
@@ -138,6 +140,13 @@ Foam::fileName Foam::CloudSubModelBase<CloudType>::localPath() const
}
}
template
<
class
CloudType
>
void
Foam
::
CloudSubModelBase
<
CloudType
>::
info
()
{
this
->
log
=
owner_
.
solution
().
log
();
}
template
<
class
CloudType
>
template
<
class
CloudType
>
void
Foam
::
CloudSubModelBase
<
CloudType
>::
write
(
Ostream
&
os
)
const
void
Foam
::
CloudSubModelBase
<
CloudType
>::
write
(
Ostream
&
os
)
const
{
{
...
...
This diff is collapsed.
Click to expand it.
src/lagrangian/intermediate/submodels/CloudSubModelBase.H
+
5
−
2
View file @
9c9088f1
...
@@ -93,7 +93,7 @@ public:
...
@@ -93,7 +93,7 @@ public:
//- Destructor
//- Destructor
virtual
~
CloudSubModelBase
();
virtual
~
CloudSubModelBase
()
=
default
;
//- Type of cloud this model was instantiated for
//- Type of cloud this model was instantiated for
typedef
CloudType
cloudType
;
typedef
CloudType
cloudType
;
...
@@ -121,7 +121,10 @@ public:
...
@@ -121,7 +121,10 @@ public:
// I-O
// I-O
//- Write
//- Write to info
virtual
void
info
();
//- Write to os
virtual
void
write
(
Ostream
&
os
)
const
;
virtual
void
write
(
Ostream
&
os
)
const
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment