Skip to content
Snippets Groups Projects
Commit 4a53835f authored by Mark OLESEN's avatar Mark OLESEN
Browse files

BUG: incorrect transform for fieldCoordinateSystemTransform (fixes #1076)

- was using coordinate-system and transform() which is the
  local-to-global mapping, whereas it should be invTransform() which
  is the global-to-local mapping
parent 7996e9af
Branches
Tags
No related merge requests found
......@@ -64,7 +64,7 @@ fieldCoordinateSystemTransform
read(dict);
Info<< type() << " " << name << ":" << nl
<< " Applying transformation from global Cartesian to local "
<< " Applying uniform transformation from global Cartesian to local "
<< *csysPtr_ << nl << endl;
}
......
......@@ -29,8 +29,8 @@ Group
Description
Transforms a user-specified selection of fields from global Cartesian
coordinates to a local coordinate system. The fields are run-time
modifiable.
coordinates to a local Cartesian coordinate system.
The fields are run-time modifiable.
Usage
Example of function object specification:
......@@ -62,10 +62,10 @@ Usage
Where the entries comprise:
\table
Property | Description | Required | Default value
Property | Description | Required | Default value
type | type name: fieldCoordinateSystemTransform | yes |
fields | list of fields to be transformed |yes |
coordinateSystem | local coordinate system | yes |
fields | list of fields to be transformed | yes |
coordinateSystem | local coordinate system | yes |
\endtable
See also
......
......@@ -41,7 +41,7 @@ void Foam::functionObjects::fieldCoordinateSystemTransform::transformField
store
(
transFieldName,
Foam::transform(dimensionedTensor(csysPtr_->R()), field)
Foam::invTransform(dimensionedTensor(csysPtr_->R()), field)
);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment