combine "Background Mesh View" with a "Restrict"
Dear, I try to create a 2D mesh on the basis of a .pos file generated from a previous calculation. This .pos file contains the desired mesh size for the whole 2D domain. However I would like to use this .pos file only in a subdomain 1 while the rest of the domain (subdomain 2) is meshed with an uniform preset mesh size. I tried the following without success:
// Include the .pos file with the mesh size in the whole domain
Include "channel_contraction_Cueto_gradient.pos";
// Perform some mathematical operations on this View -> this View = View[1]
Plugin(MathEval).Expression0 = "v0/2" ;
Plugin(MathEval).View = 0 ;
Plugin(MathEval).Run ;
// Field 1 = PostView 1 = the View with the mathematical operation
Field[1] = PostView;
Field[1].ViewIndex = 1 ;
// Here I set the uniform preset mesh size in subdomain 2
Field[2] = MathEval;
Field[2].F = "40";
// Restrict Field 1 to subdomain 1 (surfaces 2->5)
Field[3] = Restrict;
Field[3].InField = 1;
Field[3].SurfacesList = {2, 3, 4, 5};
// Restrict Field 2 to subdomain 2 (surface 1)
Field[4] = Restrict;
Field[4].InField = 2;
Field[4].SurfacesList = {1};
// Take the minimum of both restrictions and set it as the background field
Field[5] = Min;
Field[5].FieldsList = {3, 4};
Background Field = 5;
How should I solve this problem? Thanks, Xavier
Edited by Xavier Dechamps