[Gmsh] Surfaces not lining up - new user

Max Orok morok at mevex.com
Thu Mar 14 18:37:19 CET 2019


Hello Tony,

This looks like a case for the Coherence operation (only available using
OpenCascade)
After adding that line to your script, the model shares faces across the
different cylinders.

-----------

SetFactory("OpenCASCADE");

Cylinder(1) = {-50, -7.5, 0, 100, 0, 0, 7.5, 2*Pi};

Cylinder(2) = {-51, -7.5, 0, 1, 0, 0, 0.25, 2*Pi};

Cylinder(3) = {50, -7.5, 0, 1, 0, 0, 0.25, 2*Pi};

lcar1 = .1;
lcar2 = 1.0;


Characteristic Length{ PointsOf{ Volume{2:3}; } } = lcar1;
Characteristic Length{ PointsOf{ Volume{1}; } } = lcar2;

Show "*";

//+

*Coherence;*
---------------

[image: image.png]

Sincerely,
Max

On Thu, Mar 14, 2019 at 12:40 PM Anthony Ozzello <
anthony.ozzello at entegris.com> wrote:

> Hi everyone,
>
>
>
> I’m a new user, trying to set up a simple problem to start working with
> gmsh feeding into ElmerFEM.
>
> All I want to do is generate three cylinders that touch each other and the
> apply  positive voltage to
>
> one face at one end and negative voltage at the opposite face on the other
> end to show that I can
>
> build something simple and see that the potential in a stat current model
> is working. The problem
>
> is that, for some reason, the three cylinders do not seem to be connecting
> to each other. When I
>
> run the model, each of the three cylinders keeps its own potential there
> is no gradient in potential
>
> across the cylinders when I adjust the conductivity to low values. It
> seems the surfaces of the three
>
> cylinders do not connect electrically. I’ve turned on the ‘sew faces’
> option, but still no luck.
>
> Can anyone give me any ideas?
>
>
>
> Thanks,
>
>
>
> Tony
>
>
>
>
>
> //+
>
> SetFactory("OpenCASCADE");
>
> Cylinder(1) = {-50, -7.5, 0, 100, 0, 0, 7.5, 2*Pi};
>
> Cylinder(2) = {-51, -7.5, 0, 1, 0, 0, 0.25, 2*Pi};
>
> Cylinder(3) = {50, -7.5, 0, 1, 0, 0, 0.25, 2*Pi};
>
> lcar1 = .1;
>
> lcar2 = 1.0;
>
>
>
> Characteristic Length{ PointsOf{ Volume{2:3}; } } = lcar1;
>
> Characteristic Length{ PointsOf{ Volume{1}; } } = lcar2;
>
> //+
>
> Show "*";
>
>
>
> Tony Ozzello
>
> Technologist
> Liquid Filtration Division
>
> *T *+1 512 244 5205    *M *+1 518 944 3519
> ------------------------------
>
> [image: Entegris | 50 years of pure advantage] <http://www.entegris.com/>
>
> 700 Jeffrey Way, Suite 400
> Round Rock, Texas 78665 USA
>
>
>
> [image: PACE | A values-driven culture]
>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
>


-- 
Max Orok
Contractor
www.mevex.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20190314/5610d58d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6691 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190314/5610d58d/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1921 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190314/5610d58d/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 38691 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190314/5610d58d/attachment-0005.png>


More information about the gmsh mailing list