Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all 1884 articles
Browse latest View live

Meshing faces - A beginner's question

$
0
0

Hi everyone, apologies if this may seem trivial but I've been struggling to create a separate mesh for separate faces in my model.

The geometry is a simple I-beam of length 4m but thicknesses of 6.7mm and 11.8mm along the web and flanges respectively, created from extruding the cross section. Clearly a much finer mesh is required for the faces with comparatively smaller thicknesses than the span, however whatever I try, when selecting the domain for the mesh it just selects the entire geometry. Tried to use domain partitioning via faces and mesh control faces but this did not do the trick. This probably has a really simple answer which I'll be banging my head over but would really appreciate some help here.

Thanks!


Moving mesh vs convergence

$
0
0

Hi I simulate heat transfer in a cylinder with a moving boundary and a constant external source. The velocity of the boundary is a function of the local temperature and the coordinates (x, y). With a significant change in the initial geometry, the model collapses (convergence is not achieved). I do not understand the reason yet. However, first of all I want to understand how the fineness of the mesh affects the convergence.

When I generate a mesh, I select option Physics-controlled Mesh. I expect that: when using a finer mesh, the collapse comes later. However, for "Fine" mesh, collapse occurs about twice as late as for "Finer" mesh (which contains about three times more elements).

So, how can it be? Thank you for support !

meaning of swept mesh distribution

$
0
0

Hi All. I created a rectangular layer where I wanted finer layers at the edges. I used a swept mesh with a distribution that used a symmetric arithmetic sequence with 10 layers and an element ratio of 5 to produce the mesh in the image attached here (see Capture.PNG) below. My question is, what is the function that is used to calculate the thicknesses of the layers and how does the ratio of 5 come in to play here? The result is what I wanted, but I don't know how to calculate exactly how thick the layers are or understand how I got them I would like to understand.

Smoothing Fillet

$
0
0

Hi,

I added a fillet to the corner of a rectangle but it is still being recognized as having a point while meshing and computing the electric field. Is there a way to remove whatever point it is picking up so I get correct results?

Thanks in advance.

Exporting Shell Data on mesh nodes coordinates through Matlab LiveLink

$
0
0

Hi, I'm trying to export comsol data from a parametric eigenfrequency study of a shell aluminium basic plate. I need to obtain data centered exactly on the nodes from the mesh used to compute results. Data should come not from the mid-plane mesh elements but from the 3D thick structure. This fact complicates the relationship between the 2D mesh and the actual 3D data I can access from Shell datasets solutions. I've tried both mpheval and mphinterp methods but with no success. Both seem not to work with shell datasets. Is there a way to obtain such 3D data from a 2D mesh, or am I missing some important aspects in modeling mechanical problems through the Shell interface? Thank you in advance!

Identity Boundary Pair with Moving Mesh

$
0
0

I have two surfaces that are matched on two different bodies. I want to maintain that the two meshes are different size and I don't want to match them like shown below. Body 2 (courser mesh) is going drive mesh deformation of body 1 by a "moving mesh" interface. Using an identity boundary pair does not allow me to evaluate displacement of body 2 on body 1. So how do you deal with mesh deformation when the meshes aren't matched? Is there a recommended work around to deal with this?

Matched Boundaries

Coupling capacitance between inductor and coplanar waveguide

$
0
0

Good day! For the past few days I've started using COMSOL to do some simple (?) electrostatics calculations in a system of a meander inductor coupled to a (piece of) coplanar waveguide. All of them superconducting metals on top of a silicon substrate in air. There are three capacitances of interest: the capacitance of the inductor Cinductor, of the waveguide Cwaveguide, and their coupling Ccoupling. Getting the capacitances to ground of the individual elements has been fine if modeled in isolation, but extracting coupling capacitancen(especially because they are an order of magnitude or 2 smaller than the capacitances to ground?) has been troublesome. I've attached my model and I'll explain what I'm trying to do, to make the situation clear.

What am I doing? Ground plane at 0V, inductor at 1V and waveguide at 0V. We then run electrostatics, and calculate the total charges on each surface with surface integration over es.Nd. If I am not mistaken, the charges should then directly give Cinductor and Ccoupling, the one I am strugling with.

However, the issue is that the total charges do not add up to zero. Instead, if I run the above numbers, what I get is -5.2810^-15 charges on the waveguide, 1.5610^-14 on the inductor, and -1.8310^-14 on the ground. The sum of this is -7.9510^-15, which is not only nonzero (there will always be errors I imagine), but on the order of the charges I am interested in themselves. So this is my problem; how do I get this error in charge conservation to go down?

What I've tried is making the mesh finer and finer, but I am running into the limits of my 16gb of RAM it seems. I dont' think this structure is all that crazy, so perhaps there is some trick I am not thinking about, or a simplification I dont' see. Would anyone be able to assist and give a hint as to how I can improve the above?

Kind regards

Note: in an attempt to remove a name I uploaded the file twice; I don't see how to remove the other one. They are identical.

Change location of Comsols virtual memory (out-of-core file)

$
0
0

Dear community,

I am currently trying to compare different mesh qualities and how the mesh affects the solution of the problem. So the point I am stuck right now is the finest mesh: The study with the fine mesh needs MUMPS to switch to "out of core" mode and allocate a lot of virtual memory. I have a 250GB SSD in my PC - the root directory (where Comsol is installed and the virtual memory is used) has now 20GB free space, which is not enough for the calculation. At the point, where all of the free space is filled with the out-of-core file the calculation failes with following error:

Failed to find a solution. Unable to read or write out-of-core file. Returned solution is not converged.

I tried to enlarge my systems swap with this approach (I am running comsol on Ubuntu 16.04 and I have free space at other disks / partitions): https://www.techwalla.com/articles/how-to-increase-virtual-memory-in-linux

But I noticed, that comsol is not using the swap, but its own "out-of-core" memory file (if I understood that right).

Is there a possibility to tell comsol where to save that "swap-out-of-core-file" without repartitioning my disk or buying more RAM? ;-) It would also be possible to put this file into the systems swap which is 60GB right now and can be enlarged (I know that swap is slow, but better slow than not possible...)

If you need any information please let me know!

Thank you all for your time! Klaus


Control the size of the output mesh after Automatic Remeshing occurs

$
0
0

Hello all!

I am having troubles with a "Laminar Two-Phase Flow, Moving Mesh" model: the mesh elements are becoming very distorted and eventually the simulation crashes. Therefore, I have added the "Automatic Remeshing" option (I have tried changing the "Condition Type" and the options in each condition type).

However, I have found that each time it remeshes it creates a finer mesh and, thus, it is easier that a mesh element does not satisfy the automatic remeshing condition. Furthermore, if the mesh is finer the simulation takes longer to run. In the end, my model enters a loop where it remeshes basically every step the solver takes (for example, my last simulation remshed 26 times in 0.2 seconds) and it eventually crashes because "can't find a solution that satisfies the tolerance" (I have reduced the tolerance to less restrictive values).

Does anyone know how to control the size or the properties of the output mesh? Or does anyone have any recommendations for this problem?

Thank you very much in advance.

PS: I've attached a screenshot of the original mesh and the final mesh (before it crashes)

Comsol 3.5a ERROR 9040 when I mesh or solve

$
0
0

I was using comsol 3.5a in win10, and thesedays when I started to mesh even a 2d rectangle, it was told me that it has a ERROR 9040. Do anyone knows how to solve this kind of problem? Exception: java.lang.IllegalArgumentException: adding a container to a container on a different GraphicsDevice (rethrown as com.femlab.util.FlFatalException) Messages: Fatal error. - Type: IllegalArgumentException

Stack trace: at java.awt.Component.checkGD(Unknown Source) at java.awt.Container.checkGD(Unknown Source) at java.awt.Container.addImpl(Unknown Source) at java.awt.Container.add(Unknown Source) at com.femlab.gui.MainPanel.a(Unknown Source) at com.femlab.gui.MainPanel.a(Unknown Source) at com.femlab.gui.MainPanel.a(Unknown Source) at com.femlab.gui.GuiMode.a(Unknown Source) at com.femlab.gui.PostMode.a(Unknown Source) at com.femlab.gui.GuiMode.j(Unknown Source) at com.femlab.gui.au.a(Unknown Source) at com.femlab.gui.au.b(Unknown Source) at com.femlab.api.client.w.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at com.femlab.gui.e.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.Dialog$1.run(Unknown Source) at java.awt.Dialog$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Unknown Source) at com.femlab.controls.FlDialog.showAsDialog(Unknown Source) at com.femlab.controls.FlDialog.show(Unknown Source) at com.femlab.controls.FlModalDialog.show(Unknown Source) at com.femlab.gui.dialogs.z.run(Unknown Source) at com.femlab.util.x.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at com.femlab.gui.e.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

Selection of live elements to set new boundary condition

$
0
0

Hi I am working on laser cutting process. I know that we can able to kill the element by dropping young’s modulus (close to zero) method using comsol. However, I would like to kill the elements throughout the plate thickness. Therefore, I should give more numbers of laser passes on the material to make through cut. So, I need to apply the moving heat source on live element in the next laser pass. I do not have much idea on the selection of next layer of element after removed the top surface element. Is it possible to select the next layer of elements after killing the elements of the top surface?

How to solve convergence plot in Multiphysics ?

$
0
0

Hi,

I want to make a thermo-mechanic analysis using Multiphysics. Study type is stationary. But when I compute, convergence plot is included in only two small dots. There is no plot. How can I solve this problem?

I have uploaded convergence plot image as jpg form in the attached file.

Thanks..

Right Mesh for surrounding space of metal sheet, to check skin-depth effect in metal sheet

$
0
0

Hello, (My problem .mph file is attached) I'm using AC/DC Module>Magnetic Fields, to simulate the problem, where I have metal sheet (e.g. aluminum) placed underneath a source of magnetic field (source=I'm generating magnetic field by puting Surface currents (using surface current boundary) on a cylinder, which as a results generates magnetic field pattern of my interest. This magnetic field is incident on the metal sheet). I want to see how the currents induced on the metal sheet are attenuated along the thickness of metal sheet in z-direction with respect to skin-depth phenomenon. So, I'm essentially trying to verify the good old relationship J=Js * exp(-d/skindepth), d=thickness (through the metal sheet in z-direction), J=current density (A/m) at a given d, Js=Surface current that I get on surface of the metal sheet. I've used distributed mesh on metal sheet domain and I want to mesh the remaining geometry (i.e. boundary box and cylinder source of Magentic field) as coarse mesh to reduce computation time. The trouble is I run into errors for mesh in the remaining geometry. Can some one plz look into my comsol file attached and advise what I'm doing wrong? Is my overall approach right for simulating this problem? Thanks

Optimization by moving mesh

$
0
0

Hello every body, How can I take the mesh nodes as design variables?? I am trying to build a simple device that consists of a permanent magnet and an iron piece located on the top. I want to change and optimize the shape of the surface of the iron piece to minimize the standard deviation of the magnetic field in a spicific region (air domain above the iron piece). This can be done by moving the mesh nodes at that surface, so the function can be minimized. I've built the model and tried to do the optimization but haven't achieved a good result. Can any body take a look on my model and figure out my mistakes? Any help would be appreciated

Exporting data on mesh nodes

$
0
0

Hi, I need to export mechanical vibration eigenfrequency data which could lie exactly on the mesh nodes coordinates. Although I am able to export quite similar coordinates, there is always a mismatch between exported mesh node coordinates in .stl file and node coordinates for exported data from dataset. This occurs at far decimals, but as I am importing data into matlab from csv files I am no more able to easily associate data to mesh nodes for plotting. I tried to switch to Mesh frame but it seems to be useless. I also tried to export xmesh data from livelink for matlab and try to build my own mesh with nodes realigned with the data through an stlwrite matlab routine but I am not able to obtain a working mesh. I ran out of ideas. Is there a way to simply obtain data on mesh nodes? Thank you!


Undefined variable. - Variable: comp1.Ne

$
0
0

Dear Colleagues, I want to simulate a 3D MOSFET using semiconductor module. But, I am getting this error in the source domain:

Undefined variable.

  • Variable: comp1.Ne

  • Geometry: geom1

  • Boundaries: 23, 34

Failed to evaluate Jacobian of expression.

  • Expression: comp1.Ne

Failed to evaluate Jacobian of expression.

  • Expression: (-comp1.semi.nJntest(comp1.Ne))(dvol)

Please help.

Hirak

Meshing Error

$
0
0

Hi,

I'm trying to run a 3D fluid simulation. When the geometery is simple, everything runs fine. As soon as I add an angled rectange, it gives me the following error:

      Failed to create boundry layer mesh. 
      Mesh is incorrect. 
      -Detail: Domain element has wrong number of neighbors. 

I have attached the file I'm working work. Any help would be appreciated.

Thanks!

Automatic mesh refinement with Infinite Element Domain?

$
0
0

Hello, when 'Physics controlleld mesh' is enabled in the Magnetic field module, the Infinite element domain is meshed with swept elements. Adaptive mesh refinement is not possible with swept elements, only with tetrahedra. Is it possible to still do adaptive mesh refinement if I use an infinite element domain? Thank you Daniel

Meshing for very thin conductors

$
0
0

I am attempting to mesh a simulation of a very thin conductor (0.1 um) with lateral dimensions in the range of 100's of um (for stationary COMSOL AC/DC magnetic and electric fields simulation).

Whenever I attempt to generate a tetrahedral mesh, I get a "face is much smaller than the specificed minimum element size" warning; but if I manually set the minimum element size to 0.1 um the geometry becomes excessively meshed.

It seems like this issue could be solved by a hexahedral mesh option but I can't seem to find that mesh option in COMSOL 5.3

Laminar flow and Heat transfer

$
0
0

Hello guys!

I am facing a problem with Laminar flow and Heat Transfer in Fluids modules. I have found some examples regarding these modules, where in the boundary conditions of the Laminar Flow the "Pressure, no viscous stress" was selected.

For my program, I would like to use in the Boundary Condition section the "Laminar inflow" with a Flow rate given by the user. But in this case, I get the error message "Failed to find consistent initial values".

I have found discussions about this topic: https://www.comsol.com/forum/thread/25297/failed-to-find-consistent-initial-values?last=2017-09-04%2016%3A38%3A20 and I have tried all these suggestions, but none of them worked.

Can somebody help me, how should I put those initial values? I can put some velocity and pressure there, no flow rate.

The final goal is to see the influence of a gas flow in the temperature of a heated body (metallic filament), which is situated in a pipe through which we apply the gas flow.

Thanks for every help!

Domokos

Viewing all 1884 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>