underworldcode / underworld2

underworld2: A parallel, particle-in-cell, finite element code for Geodynamics.
http://www.underworldcode.org/
Other
168 stars 58 forks source link

Increase resolution in a specific area #666

Closed jlikermanUPC closed 1 year ago

jlikermanUPC commented 1 year ago

Dear UWGeodynamics team,

Is it possible to increase the resolution of a 2D domain in a specific area of the UWGeodynamics mesh? Is there an example I can check?

Thanks,

Jeremías

julesghub commented 1 year ago

Hi Jeremis,

You can deform the mesh (without adding mesh points). This can increase the resolution in specific parts of the domain, whilst also reducing the resolution in other parts.

A simple example you can checkout is the raw Underworld user guide here. https://github.com/underworldcode/underworld2/blob/master/docs/user_guide/02_TheMesh.ipynb

From the Model object in UWGeodynamics you can grab the mesh object and follow the workflow in the user guide.

Hope this helps.

jlikermanUPC commented 1 year ago

Thanks!