Mean Field of Constant Field doesn't work?
Hello everyone
I believe that the Mean Field doesn't work as expected when a "Constant" field is fed into it.
Somehow the MeanField takes the value 1e22
everyhwere...?
Steps to reproduce:
- Open the following .geo file in gmsh:
SetFactory("OpenCASCADE");
Box(1) = {0, 0, 0, 1, 1, 1};
Field[1] = Constant;
Field[1].VolumesList = {1};
Field[1].VIn = 1.0;
Field[1].VOut = 1.0;
//// Alternative which works:
//Field[1] = MathEval;
//Field[1].F = "1.0";
Field[2] = Mean;
Field[2].InField = 1;
- Create a volume mesh by pressing
3
- Visualize the Field 2 (using
Modules/Mesh/Define/Size fields -> Visualize -> Create new View
):
Note: If we use a MathEval
field instead, it works.
Field[1] = MathEval;
Field[1].F = "1.0";
Version of GMsh: 1.11.0