mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' into particleInteractions
This commit is contained in:
@ -60,7 +60,7 @@ class magnet
|
|||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
word name_;
|
word name_;
|
||||||
scalar relativPermeability_;
|
scalar relativePermeability_;
|
||||||
dimensionedScalar remanence_;
|
dimensionedScalar remanence_;
|
||||||
vector orientation_;
|
vector orientation_;
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ public:
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
name_(name),
|
name_(name),
|
||||||
relativPermeability_(mur),
|
relativePermeability_(mur),
|
||||||
remanence_("Mr", dimensionSet(0, -1, 0, 0, 0, 1, 0), Mr),
|
remanence_("Mr", dimensionSet(0, -1, 0, 0, 0, 1, 0), Mr),
|
||||||
orientation_(orientation)
|
orientation_(orientation)
|
||||||
{}
|
{}
|
||||||
@ -111,7 +111,7 @@ public:
|
|||||||
//- Return relative permeability
|
//- Return relative permeability
|
||||||
inline scalar mur() const
|
inline scalar mur() const
|
||||||
{
|
{
|
||||||
return relativPermeability_;
|
return relativePermeability_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return remenance
|
//- Return remenance
|
||||||
@ -133,7 +133,7 @@ public:
|
|||||||
{
|
{
|
||||||
is.readBegin("magnet");
|
is.readBegin("magnet");
|
||||||
is >> m.name_
|
is >> m.name_
|
||||||
>> m.relativPermeability_
|
>> m.relativePermeability_
|
||||||
>> m.remanence_.value()
|
>> m.remanence_.value()
|
||||||
>> m.orientation_;
|
>> m.orientation_;
|
||||||
is.readEnd("magnet");
|
is.readEnd("magnet");
|
||||||
@ -148,7 +148,7 @@ public:
|
|||||||
{
|
{
|
||||||
os << token::BEGIN_LIST
|
os << token::BEGIN_LIST
|
||||||
<< m.name_ << token::SPACE
|
<< m.name_ << token::SPACE
|
||||||
<< m.relativPermeability_ << token::SPACE
|
<< m.relativePermeability_ << token::SPACE
|
||||||
<< m.remanence_.value()
|
<< m.remanence_.value()
|
||||||
<< m.orientation_
|
<< m.orientation_
|
||||||
<< token::END_LIST;
|
<< token::END_LIST;
|
||||||
|
|||||||
@ -80,6 +80,23 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
|
|
||||||
H.write();
|
H.write();
|
||||||
|
|
||||||
|
Info<< nl
|
||||||
|
<< "Creating field HdotGradH for time "
|
||||||
|
<< runTime.timeName() << endl;
|
||||||
|
|
||||||
|
volVectorField HdotGradH
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"HdotGradH",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh
|
||||||
|
),
|
||||||
|
H & fvc::grad(H)
|
||||||
|
);
|
||||||
|
|
||||||
|
HdotGradH.write();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!args.optionFound("noB"))
|
if (!args.optionFound("noB"))
|
||||||
|
|||||||
Reference in New Issue
Block a user