|
[Sponsors] |
SU2 scaling mesh option disappeared in the v4.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 9, 2015, 04:18 |
SU2 scaling mesh option disappeared in the v4.0
|
#1 |
New Member
Nor Tanapura
Join Date: May 2014
Posts: 3
Rep Power: 12 |
Hello,
I'm currently trying to run an aircraft geometry that a colleague of mine meshed, however, it is too big and I would need to scale it. I recalled that the previous version of SU2 had an option in the .cfg setup file to scale the mesh but I can't find it in the current version. Any help would be appreciated. Thank you. |
|
July 14, 2015, 17:39 |
|
#2 |
Super Moderator
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14 |
Hi Nor,
Yes, we did in fact move this capability over into the SU2_DEF module, so it's still available! Please see the tutorial here for a bit of a description (you just need to impose a scale factor other than 1.0): https://github.com/su2code/SU2/wiki/...personic-Wedge. Sorry for any confusion. Hope this helps, Tom Last edited by economon; July 27, 2015 at 04:50. |
|
July 15, 2015, 00:47 |
|
#3 |
New Member
Nor Tanapura
Join Date: May 2014
Posts: 3
Rep Power: 12 |
Hi Tom,
Yes this is exactly what I was searching for. Thank you very much for the help. Regards, Nor |
|
July 19, 2015, 14:13 |
|
#4 |
New Member
Michael Lindenmaier
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
Hi Tom
I have quite a few meshes in mm and need to convert to m. The MESH_SCALE_CHANGE was very convenient and fast (I guess it was just some internal fiddling with the numbers, not really converting the mesh). Using the DV SCALE and transforming it is less convenient, one step more and takes quite long even for a 500k tetmesh. While I could live with that the bigger problem is that the transformation creates a lot of negative volumes. It is a quite simple mesh, no prismlayer, so the cells are reasonably small. How to get rid of that? Any options that one can set for the transformation? I think for a simple mm to m the algorithm the DV scaling is an overkill (I assume it is based on the scaling stuff for the optimization) Any other possibility to replicate the MESH_SCALE_CHANGE behavior? (Currently I am thinking of writing a small script that is just scaling all coordinate values, but I would rather avoid that if possible. Also not sure if I wouldn't run into round-off problems, especially for the meshes with prismlayers. BR Michael |
|
July 19, 2015, 22:37 |
|
#5 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
Quote:
I think your best bet will be either writing a script or checking out a previous version from github in order to do your processing, (I think that would produce a mesh_out.su2 file, which if you want could be used with the updated version). Since the format can be in scientific notation, for a mm to m transformation there will be no round-off issues. The SCALE design variable stretches the surface geometry identified by DV_MARKER within the mesh, and then the volume mesh is deformed to match (So it does sometimes encounter negative volumes if the deformation is very large, as would be the case for a *1000 scale). This is not guaranteed to preserve mesh quality, especially for large deformations. |
||
July 20, 2015, 12:17 |
|
#6 | |
New Member
Michael Lindenmaier
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
Quote:
Using previous versions probably won't work as they do not seem to transform the mesh but only do the conversion a "runtime". But your right, the scientific notation should make it quite robust. They way the SCALE works according to your description confirms my gut feeling at the beginning that it is too powerful and definitively not intended to do a simple unit-conversion scale. So script it is. Bringing back the MESH_SCALE_CHANGE would be nice, but there were probably some good reasons to kick it br Michael |
||
July 20, 2015, 16:15 |
|
#7 | |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
Quote:
|
||
July 21, 2015, 04:39 |
|
#8 | |
New Member
Michael Lindenmaier
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
Quote:
|
||
July 27, 2015, 04:48 |
|
#9 |
Super Moderator
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14 |
Hi Michael,
Can you please give this another try with the current version of the code on the develop branch: https://github.com/su2code/SU2/tree/develop I think it should have the behavior you were expecting now, which I agree is the right way to go (just hadn't gotten to it yet, ). T |
|
July 29, 2015, 17:20 |
|
#10 | |
New Member
Michael Lindenmaier
Join Date: Jul 2015
Posts: 5
Rep Power: 11 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simulation of a single bubble with a VOF-method | Suzzn | CFX | 21 | January 29, 2018 01:58 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
particle tracking | sakurabogoda | CFX | 7 | December 5, 2013 00:12 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
increasing mesh quality is leading to poor convergence | tippo | CFX | 2 | May 5, 2009 11:55 |