Hi,

pursuing the subject I tried: 

1) parsed format: The example below is what worked to me so far.

-(a continent of elements adjacent to an element edge in order to set the mesh element size)

But I guess there is no easy way to convert to "parsed format", so it is not the path to follow. Right?

2) msh format: There might be a converter (ElmerGrid). Good idea?

3) Anyway I need to modify the values of the the post processing mesh. How is this done best? With fields (postview/matheval?) in the .geo script or otherwise?

Found this example: dg/benchmarks/Atmosphere/idealizedCyclone/aquaplanet_up.geo without having tried it. Is it good for the purpose?

Merge "aquaplanet_1d.msh";
Merge "resolutionCartesianUp.pos";
Field[1] = PostView;
Field[1].IView = 0;

Field[2] = MathEval;
Field[2].F = "F1/sqrt(2*6371220*2*6371220/(2*6371220*2*6371220 + x*x + y*y))";
Background Field = 2;

 

 

4) Am not very sure which path to follow. 

If this procedure is suboptimal, I would be glad, if some advised me how to go the foreseen way or an example.

Tia

 

Example for "parsed format"
Merge "t1.geo";

// View "background mesh" {

// ST(0.024,0.3,0,0.008,0.25,0,0.027,0.25,0){0.00048,0.0003,0.0081};
// };

View "background mesh" {
SP(0.05, 0.3, 0){0.0006};
};

//adjacent to the element edge, else ignored

// Apply the view as the current background mesh
Background Mesh View[0];

_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to