Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 404
    • Issues 404
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #2505
Closed
Open
Created Jun 03, 2022 by Mark OLESEN@markMaintainer

add coordinate transforms to surface writer output

cross-ref EP1886 @martin.werther

Discussed the need to have different locations for the output sampled surface (eg, to relocate into the original car coordinate system and scale in mm).

We already have geometry scaling, but that is mostly ad hoc for a few select writers. With this change it would make sense to add in a general cartesian coordsys transform. For example,

transform
{
    origin (5 1 0);
    e1 (0 1 0);
    e3 (0 0 1)
}

This syntax can also be extended with the rotation sub-entry. For example,

transform
{
    origin (5 1 0);
    rotation
    {
        type euler;
        order rollPitchYaw;
        angles (0 0 90)
    }
}

scale 1000;  // [m] -> [mm]

These are applied in the OpenFOAM global MKS coordinate system, and the scaling is applied afterwards.

Edited Jun 08, 2022 by Mark OLESEN
Assignee
Assign to
Time tracking