mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user