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

View File

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

View File

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

View File

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