CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   EnSight (https://www.cfd-online.com/Forums/ensight/)
-   -   Mapping to a rectilinear Grid (https://www.cfd-online.com/Forums/ensight/168167-mapping-rectilinear-grid.html)

wjbvg5 March 16, 2016 16:01

Mapping to a rectilinear Grid
 
Hello,

I'm having issues doing some post processing in ensight. I run a code which utilizes arbitrary polyhedrons- this means that in some places some nodes may be VERY close together. This drives the gradients to be artificially high.

I'm noticing that when using vort/curl/grad (velocity) I'm getting a ridiculously high value. I think one way to resolves this will be to remap my polyhedrons (rectangles) to a better organized mesh and average the properties (here velocity) between the remap.

I'm not sure how to do this- or if this is a function even within ensight.

Thanks ahead of time

kevincolburn March 16, 2016 20:54

Mapping to a rectilinear grid
 
wjbvg5,

Have a look at "CaseMap()" calculator function first. You can interpolate the solution from one grid onto another grid. The receiving grid can be any grid that you like, or create. In the past, I've created a rectangular grid as a reference grid, and CaseMap() results to it.

Second option, might be to look at the Displacements capability in EnSight. Given a nodal vector, you can displace the nodal locations of the grid by this vector quantity (a common feature for our FEA/Stress/Deformation folks). This can be used to move the nodes. What would use for this nodal vector? That I am not sure. Bit of stretch (no pun intended), but knowing that you can move nodes based on a local vector field, this might allow you some freedom.

Let us know if you have more questions, or perhaps try to work through this problem further.

Regards,

Kevin

wjbvg5 March 17, 2016 14:40

Kevin- Thank you for the help,

However I'm having an issue creating a grid within Ensight.

Is there a quick way to do this or do I need an external program?

Thanks so much,

kevincolburn March 17, 2016 15:58

You can certainly use a grid generation program if you wanted.
You can also create EnSight Case File formats manually (documented, fairly easy).
I have small python utility which I use to create a planar surface of quad elements. It is easily run, and quick to change. I can't attached files here, but if you email me, I can send you the short little python routine which I use to generate such simple grids.


All times are GMT -4. The time now is 14:41.