BUG: Correcting axesRotation.C virtual member functions and

tutorials using coordinates systems dictionary
This commit is contained in:
sergio
2013-02-07 11:32:40 +00:00
parent 29b74534c7
commit 20cfa7c6ae
4 changed files with 40 additions and 24 deletions

View File

@ -171,12 +171,7 @@ Foam::tmp<Foam::vectorField> Foam::axesRotation::transform
const vectorField& st const vectorField& st
) const ) const
{ {
notImplemented return (R_ & st);
(
"tmp<vectorField> Foam::axesRotation:: "
"transform(const vectorField& st) const"
);
return tmp<vectorField>(NULL);
} }
@ -185,12 +180,7 @@ Foam::tmp<Foam::vectorField> Foam::axesRotation::invTransform
const vectorField& st const vectorField& st
) const ) const
{ {
notImplemented return (Rtr_ & st);
(
"tmp<vectorField> Foam::axesRotation::"
"invTransform(const vectorField& st) const"
);
return tmp<vectorField>(NULL);
} }

View File

@ -33,11 +33,17 @@ porosity1
coordinateSystem coordinateSystem
{ {
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0.70710678 0.70710678 0); e1 (0.70710678 0.70710678 0);
e3 (0 0 1); e3 (0 0 1);
} }
} }
} }
}
} }

View File

@ -53,26 +53,40 @@ geometry
surface box1; surface box1;
scale (1.0 1.0 2.1); scale (1.0 1.0 2.1);
transform transform
{
coordinateSystem
{ {
type cartesian; type cartesian;
origin (2 2 0); origin (2 2 0);
coordinateRotation
{
type axesRotation;
e1 (1 0 0); e1 (1 0 0);
e3 (0 0 1); e3 (0 0 1);
} }
} }
}
}
herring herring
{ {
surface box1; surface box1;
scale (1.0 1.0 2.1); scale (1.0 1.0 2.1);
transform transform
{
coordinateSystem
{ {
type cartesian; type cartesian;
origin (3.5 3 0); origin (3.5 3 0);
coordinateRotation
{
type axesRotation;
e1 (1 0 0); e1 (1 0 0);
e3 (0 0 1); e3 (0 0 1);
} }
} }
} }
}
}
}; };

View File

@ -51,11 +51,17 @@ porosityBlockage
coordinateSystem coordinateSystem
{ {
type cartesian;
origin (0 0 0);
coordinateRotation
{
type axesRotation;
e1 (0 1 0); e1 (0 1 0);
e2 (0 0 1); e2 (0 0 1);
} }
} }
} }
}
} }
MRF1 MRF1