Scaling grid coordinates

10 views
Skip to first unread message

bjpal...@gmail.com

unread,
Aug 3, 2016, 12:56:49 PM8/3/16
to deal.II User Group
Is there a simple function that can be used to scale the coordinates in a DEAL II triangulation? I want something that would allow you to change coordinates to cm if the file your are reading from is using microns. Also, it might be nice to convert back to microns before trying to export results. If there is no function to do this directly, is there an iterator over vertices or something similar that could be used to create the capability?

Bruce

Jean-Paul Pelteret

unread,
Aug 3, 2016, 1:52:39 PM8/3/16
to deal.II User Group
Hi Bruce,

Yes there is, its called GridTools::scale. If you want to don't want to physically modify the grid again just for the purpose of writing it out after postprocessing, you could always create your own mapping that does the scaling. In step-44, an Eularian map is created to output the solution in the spatial configuration while all calculations are done in the material configuration.

Regards,
J-P
Reply all
Reply to author
Forward
0 new messages