×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

What is an Inverted Mesh Element?

What is an Inverted Mesh Element?

What is an Inverted Mesh Element?

(OP)
I am new to (Stress/Mechanical) FEA.  I am trying to use Comsol Multiphysics to show stress's on a plastic connector.

My past experience is with CF Design (cfd) and I am not finding it any help trying to use the mechanical software.

I keep getting an Inverted Mesh error.  What exactly does this mean?  What sort of geometry would cause such errors (what should I change in the CAD, or is it a matter of changing settings)?

Earlier post in the wrong section
http://www.eng-tips.com/viewthread.cfm?qid=229673&page=1

RE: What is an Inverted Mesh Element?

My guess is that you have an element inside out.  A 2D example would be the nodes of a square could also make an hourglass shape.  More details about what software you are using would help provide a better answer.  Hope this helps.

Rob

RE: What is an Inverted Mesh Element?

All FE solvers that I am aware of require that the nodes of an element are presented in a particular order. Reverse that order, then in 2D the solver may report a negative area element and in 3D a negative volume. Jumble up the order and a variety of element quality errors may be reported, Abaqus will actually ask you to check the element node numbering order.

Having said that, I expect that very few users will be building data files by hand, thus with a pre-processor to generate the mesh this kind of problem should never happen! But occasionally when geometry is imported from CAD that is particularly nasty, screw ups can occur and some pre-processors can generate illegal elements giving rise to these error messages.

RE: What is an Inverted Mesh Element?

(OP)
my understanding after researching some more is that as the model "deflects" under load, it can cause some mesh's to invert.  Comsol gives me the option to allow remeshing during a simulation, and this is what I am trying to do now.

Are the Pre-Processor's you are using specific to the program? or do they work for any simulation software?

RE: What is an Inverted Mesh Element?

What I suspect you are referring to is an inverted Jacobian error.  In very simple terms, it means your mesh has elements that are distorted.  They may either be distorted due to the meshing operation or they may become distorted during the solution as a result of very large deflections in your model.

Essentially the Jacobian operator relates the natural coordinate derivatives to the local (or global) coordinate derivatives for an isoparametric element.   So you can think of it as a mapping between coordinate systems.

d/dr=J*d/dx where r is the natural coordinate.   We can also say that d/dx=(J^-1)*d/dr.   In order for J^-1 to exists, there needs to be a one to one mapping between the coordinate systems for an element.   If an element is highly distorted (for example large interior angles) this one to one mapping does not exist.   For highly distorted elements J is singluar and therefore J^-1 does not exist.

 

RE: What is an Inverted Mesh Element?

(OP)
Spongebob007 - I think you're correct.  My coworker found me a document that illustrates the inverted mesh error, and how to "remesh" during the simulation.  

I made the changes, and ran it.  It seemed like it was working (took a long time) and then crashed with ... "inverted mesh"!

I'll try again.  Perhaps I can change how I apply my forces.

RE: What is an Inverted Mesh Element?

Natural coordiantes can be thought of as a coordinate system that is internal to the element and independent of the global coordinates.

For example, consider a two node truss element of length L positioned along the global X axis.   The global corrdinates of the nodes would be x1 and x2 respectively.   The natural coordinates of the two nodes would be -1 and 1 respectively.    

RE: What is an Inverted Mesh Element?

What kind of simulation are you trying to do?  For linear, small defelction types problem, I have never heard of a case of the mesh becoming distorted under the actions of the loads.   If you are running a linear analysis and getting this error, chances are it is your original mesh that is distorted.  I am not familiar with Comsol, but most FEA preprocessors have a mesh quality checking feature that will highlight warped elements in the mesh.  You can run a mesh quality check to see if this is the case.   If you find distorted elements you can try remeshing with a finer mesh density, applying local mesh controls, or modifying the CAD geometry to better accomidate the mesh.   Some codes also have "auto fix" features that attempt to fix bad elements.


Sometimes you can force your model to run by turning off the automatic mesh checking.  Again, I am speaking in generic terms becasue I don't know if your program has these features.

RE: What is an Inverted Mesh Element?

(OP)
My company builds automotive electronics.  We have a plastic connector assembly that is attached to an aluminum housing using 4 spring pins.  These pins hold the connector against a flat surround which compresses an O-ring creating a water proof seal.

The spring pins also must support against someone tugging on the connectors (150 N).  

My simulation has to correlate the existing connector with a new suppliers "cored" version of said connector.  I am trying to confirm that the strength of the unit has not diminished.


On a side note, I have been "cutting" up my model into 4 separate parts, and running the simulations separately.  I hate doing this, because I think it's important to keep them as one piece so that the interaction is evident.

Anyways, Thanks again!  I'll keep updating as I progress.

RE: What is an Inverted Mesh Element?

ryandias-

One issue I could see with a CFD-FEA crossover is that you may be using too fine of a mesh. Structural meshes can be much more coarse than you may be used to seeing in the CFD arena. The connector you're modeling just doesn't seem big enough to require so many elements that you'd have to break the model into four parts just to run it in a reasonable amount of time. Assuming that you are using a solid model, you could start with a mesh size no smaller than the thickness of the part and see if your model runs in a reasonable amount of time. If it runs, at least you know you've worked out the bugs in the geometry and boundary conditions. Then refine the mesh until you don't see substantial changes in results.

jt

RE: What is an Inverted Mesh Element?

Tried to post this yesterday, but it didn't come thru.

"My simulation has to correlate the existing connector with a new suppliers "cored" version of said connector."

Ryandias - if the supplier gave you the geometry file, and you converted it from a non-native source (for Comsol) it may be the root of your problem.  It is quite possible that the "core" was created using a mesh having a different "handedness" than the original file, resulting in the Jacobian errors you are seeing.  I was able to create such files using an early version of an Autocad product, where I was doing a "boolean" subtraction operation to core out a part; the resulting file had all kinds of nasty things happening, until I abandoned that approach.

You should try to build the model file from scratch, within the COMSOL environment, and see if it doesn't run a bit better.

RE: What is an Inverted Mesh Element?

(OP)
That is really not an option.  Comsol's geometry/cad is much too slow to try and recreate this connector.  I had originally tried to build it in Comsol, but I think I'm just wasting more time.  

This morning, I ran some simulations on our existing connector (4 partial simulations), with no inverted mesh errors.  This is from native files, but is input into Comsol using parasolid files.  The supplier files I input into comsol were converted from STEP to Parasolid, and then input.

I am going to try and run a simulation on the whole connector this afternoon sometime, to see if it causes errors, or works fine as with the individual sections.

RE: What is an Inverted Mesh Element?

Have you tried to see exactly which elements are giving you problems?    

RE: What is an Inverted Mesh Element?

(OP)
Ran the simulation on the whole connector (less detailed on), and it had the same inverted mesh error.  It did give data, but I am not sure how reliable the data is.

The inverted elements seem to be on a flat section, in the middle (no features).

RE: What is an Inverted Mesh Element?

"The inverted elements seem to be on a flat section, in the middle (no features). "

Next to the wall/forming the wall of the cored part of the model?  If so, bingo for my prior post - the model was constructed without keeping the same coordinate system "handedness" from parent to child, probably by constructing the core as a boolean subtract operation.  The vendor's files are worthless to you.

RE: What is an Inverted Mesh Element?

"That is really not an option.  Comsol's geometry/cad is much too slow to try and recreate this connector.  I had originally tried to build it in Comsol, but I think I'm just wasting more time.  

This morning, I ran some simulations on our existing connector (4 partial simulations), with no inverted mesh errors.  This is from native files, but is input into Comsol using parasolid files.  The supplier files I input into comsol were converted from STEP to Parasolid, and then input.
"



It sounds like you have not modelled the cored connector in ANY modelling software?  Could you not model it (the cored part) fairly quickly in SolidWorks or Inventor, or whatever was used to generate the original connector parasolid file?  Then import the parasolid to Comsol and mesh from there...

RE: What is an Inverted Mesh Element?

(OP)
I recieved the Cored model in STEP, but had to stitch quite a bit to get a solid.

Our system is Solid Edge ST.

I stitched up the broken surface model and got a solid.  Then output a parasolid and imported to Comsol.  

"without keeping the same coordinate system "handedness" from parent to child, probably by constructing the core as a boolean subtract operation.  The vendor's files are worthless to you."

Entertaining this.  Can you explain this in "wife" terms?  I am not catching why boolean operations would affect the quality of the model?  After it is output to STEP isn't it completely dumb anyway?

RE: What is an Inverted Mesh Element?

I am also not sure how boolean operations can lead to meshing errors.

RE: What is an Inverted Mesh Element?

SpongeBob - They don't!

Ryandias - STEP (and IGES) whilst providing a perfectly good BREP (boundary representation) of a solid volume are as you say "dumb" - they don't contain any information relating to boolean operations or a CSG (constructive solid geometry) tree. Any pre-processor will import the geometry and if necessary topologically "adjust" the face definitions such that all face surface normals will either all go into the volume or all go outwards. They have to be consistent, only then can the model be correctly meshed. I would find it very hard to believe that any meshing software could be adversely influenced by "handedness" within the original CAD system.


 

RE: What is an Inverted Mesh Element?

"Any pre-processor will import the geometry and if necessary topologically "adjust" the face definitions such that all face surface normals will either all go into the volume or all go outwards. "

I've seen it happen, especially when translations are made from surface models to solid models, and have had problems in particular when using boolean subtractions to "core" a parent solid.  IMO, there are likely areas within (beneath) the stitched surfaces that did not get treated by the preprocessor.  

But, we clearly have experts on preprocessors here (and I am definitely not), so I will respectfully bow out of this discussion.  Good luck, Ryandias.

RE: What is an Inverted Mesh Element?

In the end, it is kind of hard to tell what is really going on without looking at the model itself. I have found that STEP files are extremely reliable as far as producing good quality geometry.  IGES files are the worst.  However it has been my experience that bad geometry will cause meshing failures.  

If your model is undergoing extremely large defelctions then you might need to remesh the model at different solution steps.

One example of this problem would be metal forging/forming analysis.   The deformed shape is so different than the original shape that the elemnents will distort during the solution phase. Is it possible this could happen during a non-linear simulation of an elastomer?   I don't have much experience with FEA of rubber parts.  

RE: What is an Inverted Mesh Element?

Your geometry could be the problem.   It looks to me like there are some very thin sections on the part.   If you mesh this part as-is with a tetrahedral mesher I would expect that you will get some high aspect ratio (distorted) elements in some of the thinner sections.   For example, say the wall thickness is 0.1" and you set an element length of 0.5".   The mesher will fill that solid with distorted elements that might lead to solution failures.  Of course the brute force approach is to specify .1" elements.  However this may lead to a model with an unwieldy number of degrees of freedom.   

Your overall element quality will be a function of how robust the mesher is that you are using.  I find that for some codes, the "auto mesh" functionality often chooses element sizes that are too large for the geometry.  The mesher can compound this problem by trying to fit elements of all the same size to the geometry.  Some codes have smart meshers that will identify small features and adjust mesh sizes and element size transitions accordingly.  

You might have to resort to using local mesh controls to get a good quality mesh.  Sometimes splitting up the solid into multiple bodies is what you are going to have to do.  If possible, defeature the geometry.  Remove all small features that you feel don't contribute to the overall response of the model.  This is easier said than done when you are working with imported geometry.   Many of the higher end preprocessors can delete surfaces and heal imported geometry even without model history.
 

RE: What is an Inverted Mesh Element?

(OP)
ok.

So this brings up another question then.  What is an appropriate mesh.

Is the attached mesh ok, or is this causing my problems?

there are some larger tetrahedrals in the middle areas, and very fine ones near the holes.

I have tried refining the mesh, and only resulted in longer run/fail times.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources