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
55cd7409
Commit
55cd7409
authored
Apr 14, 2010
by
graham
Browse files
STYLE: particleForces. Rename variable chi -> magneticSusceptibility.
parent
3c060421
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/particleForces/particleForces.C
View file @
55cd7409
...
...
@@ -49,7 +49,7 @@ Foam::particleForces::particleForces
Cvm_
(
0
.
0
),
pressureGradient_
(
dict_
.
lookup
(
"pressureGradient"
)),
paramagnetic_
(
dict_
.
lookup
(
"paramagnetic"
)),
chi
_
(
0
.
0
),
magneticSusceptibility
_
(
0
.
0
),
UName_
(
dict_
.
lookupOrDefault
<
word
>
(
"U"
,
"U"
)),
HName_
(
dict_
.
lookupOrDefault
<
word
>
(
"H"
,
"H"
))
{
...
...
@@ -60,7 +60,7 @@ Foam::particleForces::particleForces
if
(
paramagnetic_
)
{
dict_
.
lookup
(
"
chi"
)
>>
chi
_
;
dict_
.
lookup
(
"
magneticSusceptibility"
)
>>
magneticSusceptibility
_
;
}
}
...
...
@@ -77,7 +77,7 @@ Foam::particleForces::particleForces(const particleForces& f)
Cvm_
(
f
.
Cvm_
),
pressureGradient_
(
f
.
pressureGradient_
),
paramagnetic_
(
f
.
paramagnetic_
),
chi_
(
f
.
chi
_
),
magneticSusceptibility_
(
f
.
magneticSusceptibility
_
),
UName_
(
f
.
UName_
),
HName_
(
f
.
HName_
)
{}
...
...
@@ -135,9 +135,9 @@ Foam::Switch Foam::particleForces::paramagnetic() const
}
Foam
::
scalar
Foam
::
particleForces
::
chi
()
const
Foam
::
scalar
Foam
::
particleForces
::
magneticSusceptibility
()
const
{
return
chi
_
;
return
magneticSusceptibility
_
;
}
...
...
@@ -248,7 +248,7 @@ Foam::vector Foam::particleForces::calcNonCoupled
Ftot
+=
3
.
0
*
constant
::
electromagnetic
::
mu0
.
value
()
/
rho
*
chi_
/
(
chi
_
+
3
)
*
magneticSusceptibility_
/
(
magneticSusceptibility
_
+
3
)
*
(
H
[
cellI
]
&
gradH
[
cellI
]);
// force is:
...
...
@@ -257,7 +257,7 @@ Foam::vector Foam::particleForces::calcNonCoupled
// *constant::mathematical::pi
// *constant::electromagnetic::mu0.value()
// *pow3(d/2)
// *
chi/(chi
+ 3)
// *
magneticSusceptibility/(magneticSusceptibility
+ 3)
// *(H[cellI] & gradH[cellI]);
// which is divided by mass ((4/3)*pi*r^3*rho) to produce
...
...
src/lagrangian/intermediate/particleForces/particleForces.H
View file @
55cd7409
...
...
@@ -91,7 +91,7 @@ class particleForces
Switch
paramagnetic_
;
//- Magnetic susceptibility of particle
scalar
chi
_
;
scalar
magneticSusceptibility
_
;
// Additional info
...
...
@@ -152,7 +152,7 @@ public:
Switch
paramagnetic
()
const
;
//- Return magnetic susceptibility
scalar
chi
()
const
;
scalar
magneticSusceptibility
()
const
;
//- Return name of velocity field
const
word
&
HName
()
const
;
...
...
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