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
This commit is contained in:
Mark Olesen
2018-11-16 12:23:41 +01:00
parent 7996e9af8b
commit 4a53835f4b
3 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -41,7 +41,7 @@ void Foam::functionObjects::fieldCoordinateSystemTransform::transformField
store
(
transFieldName,
Foam::transform(dimensionedTensor(csysPtr_->R()), field)
Foam::invTransform(dimensionedTensor(csysPtr_->R()), field)
);
}