Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
aaa54692
Commit
aaa54692
authored
Jun 24, 2021
by
mattijs
Browse files
ENH: fan bc: more logical initialisation. See
#2138
.
parent
3b10cd84
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C
View file @
aaa54692
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd.
Copyright (C) 2019
-2021
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -63,7 +63,7 @@ Foam::jumpCyclicFvPatchField<Type>::jumpCyclicFvPatchField
const
bool
valueRequired
)
:
cyclicFvPatchField
<
Type
>
(
p
,
iF
,
dict
,
false
)
// Pass no
valueRequired
cyclicFvPatchField
<
Type
>
(
p
,
iF
,
dict
,
valueRequired
)
{
// Call this evaluation in derived classes
//this->evaluate(Pstream::commsTypes::blocking);
...
...
src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchField.C
View file @
aaa54692
...
...
@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2015 OpenFOAM Foundation
Copyright (C) 2017-202
0
OpenCFD Ltd.
Copyright (C) 2017-202
1
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -67,7 +67,7 @@ Foam::fanFvPatchField<Type>::fanFvPatchField
const
dictionary
&
dict
)
:
uniformJumpFvPatchField
<
Type
>
(
p
,
iF
,
dict
)
,
uniformJumpFvPatchField
<
Type
>
(
p
,
iF
,
dict
,
false
),
// Pass no valueRequired
phiName_
(
dict
.
getOrDefault
<
word
>
(
"phi"
,
"phi"
)),
rhoName_
(
dict
.
getOrDefault
<
word
>
(
"rho"
,
"rho"
)),
uniformJump_
(
dict
.
getOrDefault
(
"uniformJump"
,
false
)),
...
...
@@ -75,11 +75,29 @@ Foam::fanFvPatchField<Type>::fanFvPatchField
rpm_
(
0
),
dm_
(
0
)
{
// Note that we've not read jumpTable_ etc
if
(
nonDimensional_
)
{
dict
.
readEntry
(
"rpm"
,
rpm_
);
dict
.
readEntry
(
"dm"
,
dm_
);
}
if
(
this
->
cyclicPatch
().
owner
())
{
this
->
jumpTable_
=
Function1
<
Type
>::
New
(
"jumpTable"
,
dict
);
}
if
(
dict
.
found
(
"value"
))
{
fvPatchField
<
Type
>::
operator
=
(
Field
<
Type
>
(
"value"
,
dict
,
p
.
size
())
);
}
else
{
this
->
evaluate
(
Pstream
::
commsTypes
::
blocking
);
}
}
...
...
Write
Preview
Markdown
is supported
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