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

Use of moving wall in COMSOL?

$
0
0
I'm trying to simulate a rigid object moving in a rigid fluid-filled channel in COMSOL. The inlet provides a velocity for the non-compressible fluid, which pushes the object. No problem so far, this works fine for time-dependent studies in 2D.

The issue is that I want to move to 3D, and I think that will become very computationally expensive. It was suggested that I use snapshots of static studies (it's Stokes flow, so supposedly that's ok -- regardless, that's a different issue), rather than doing time-dependent studies. But, a static study won't converge (which makes sense because there is no steady state given the continuous movement of the object down the channel).

I was told the solution to this was to use a moving wall. I have spent hours trying to figure out how to do this, and learned nearly nothing. The 1000+ page COMSOL reference guide has one paragraph on moving walls, and essentially says "If you use a moving wall, u = u sub w." Not very informative.

I would greatly appreciate it if someone could explain the theory of a moving wall in general (why and when is it used), and how it applies to this problem specifically (where does the wall go, and what are the parameters).

Thank you!

Two solver steps in time depend. study

$
0
0
I am running a time dependent study. When I try and run for long times, i.e. greater than 5 s, it does not converge. However, if I run a solver step until ~0.1 s and then feed that result in as the initial condition in a second step in the solver, I can run it to longer times, i.e. 100 s. The solutions seem reasonable.

My question is: Is this an appropriate method to getting a simulation to converge?

Thank you

Open Circuit Voltage

$
0
0
Hi,
I'm trying to measure open circuit voltage of a simple structure. I have a metal of wire with hot temperature in one end and cold temperature in the other end. I did the simulation and all the voltage is zero in results. I wonder if it's possible to measure open circuit voltage with Comsol.

,

A general question about convergence issue

$
0
0
Hi all,

I'm doing research with Comsol 5.3 fluid flow interface. I used couple geometry parameters such as radius of a cylinder, the angle of a domain relative to the others, etc. When I try to change those parameters and build the geometry, it usually mess up the domains I set up earlier in "delete geometry" and "partition domain". This is one problem. Another one is: when I try to calculate different results from different parameters, Solver doesn't converge. And I rebuild everything in a new file exactly the same as previous ones except this time I start with the new parameter I want. Then it works. I don't know why. Is this happening to you guys?

Sincerely,

Xu Xu

Thin film error "Internal error in geometry decomposition"

$
0
0
Hi,

I'm new to Comsol, and I've been having some trouble with creating thin-film geometries. What I have is a number of objects (thin films) with sides with lengths in the order of mm, but heights in the order of 10's of nm. When trying to add multiphysics to these subdomains, I get error 2100: "Internal error in geometry decomposition". Part of my simulation for these structures will include thermal behaviour. For this reason, I am trying to find a way to get Comsol to see my structures as essentially 2-dimensional, and to neglect their thickness, as this seems to be the problem. Does anyone have any experience with this kind of situation, and how to model it?
Any held would be much appreciated!

Thermoelectric Effect - Adding the physics

$
0
0
Hello,

I'm working in a project on thermoelectric generator. As 'Thermoelectric' physics interface,is not in the physics area/physics list, I was trying to add the physics using the steps given in the COMSOL Help. But, I'm getting an error in the weak equation in feature1, 'Syntax of Expression is wrong'. The expression is K.del(T).Test(del T), (where del is the symbol Capital Delta). Could anyone please help me in finding out the solution.

Thank you
Pheba Cherian

Elastoplasticity

$
0
0
Hello everyone,

I want to define an elastoplastic behavior on Comsol. I choose the Solid Mechanics model in Structural Mechanics, but an Linear Elastic Material node is automatically generated in the Model Builder. I don't want the behavior to be linear but rather elastoplastic.

Thanks in advance !

DC discharge simulation with idle time

$
0
0
Dear Friends,

Im simulating low-pressure 2D DC discharge with COMSOL Plasma module. The peculiarity of this simulation is in the anode voltage supply. Anode voltage waveform is represented by small duty cycle pulse train (rectangular + long pause each). The high voltage application time is much smaller than entire pulse period, but it is enough to ignite self-sustained discharge ~ 2 us at low pressure. After the ignition of self-sustained discharge voltage source switching off for the long time about ~ 100 us.
COMSOL successfully simulates the ignition, but after the switching the source off at about 20-30 us from the beginning of the simulation I receive "Repeated error test failures. May have reached a singularity" error for BDF and Generalized alpha time-dependent solvers both. Also I've tried to set Relative tolerance at specified value from 0.01 down to 1e-5.
I can't explain why is it so? There is no convection at that time point, only diffusion and surface reactions. Do you know how to avoid such disconvergencies? Please, share your opinions.

3D two solenoid coil self inductance and mutual inductance

$
0
0
Hello,

Thank you for your sincere response before.
I'm now struggling to realize to calculate mutual inductance between 3D two solenoid coils.

I used 3D model since I have to realize parallel two axis for misalignment although the solenoid has axisymmetric shape.

I have some confusion because the results (self inductance first) comparing to 2D results that I performed before with one solenoid model using 2D axisymmetric model.

I think 2D axisymmetric result makes sense so I don't understand why 3D result has so large self
inductance.

2D Axisymmetric model Self inductance: ~145uH
3D model Self inductance: 2309.6uH


I used
Results-Global Evaluation-Expression-Model-Component1-Magnetic Field-Coil parameter- Coil inductance: mf.LCoil_1

Could you give me some advice or recommendation to realize this model?
I think I may have some mistake for 3D modeling.
I'm really looking forward to hearing from you.

<2D axisymmetric model> Physics: Magnetic Fields, Study: Stationary
1. Geometry:
Rectangle- Width: 1.63mm
- Height: 2.5cm
-Position:
Base: center, r:25[cm]
z: 1.25[cm]

2. Material : Copper

3. Magnetic Fields-Multi-Turn Coil
Material type: From material
Coil excitation: Current
Coil currnet: 1[A]
Number of turns: 11
Coil wire cross-section area: American wire gauge: 14AWG

3. Global Evaluation:
Self inductance: ~145uH

<3D model> Physics: Magnetic Fields, Study: Stationary
1. Geometry
Using Cylinder (Boolean difference)

Cylinder1:
Radius: 25cm
Height: 2.5cm
Cylinder2:
Radius: 24.837cm (for 14 AWG (1.63mm diameter) coil)
Height: 2.5cm

Boolean difference: Cylinder1-Cylinder2

2. Material: Copper

3. Magnetic Fields-Multi-Turn Coil
Material type: From material
Coil type: Circular
Coil current: 1A
Number of Turns: 11
Coil wire cross-section area: American wire gauge: AWG 14

4. Global Evaluation:
Self inductance: 2309.6uH


I assigned circle (2D) and sphere (3D) for air circumstance.

I would be appreciated your help.


Best regards,

Sung

Bending of cantilever beam

$
0
0
Am a new user of Comsol 5.2a. My design is a fixed-free cantilever beam with a tip mass. I want to find the maximum thickness that can be given for a tip mass without the beam bending. Can anyone help me with the simulation?. Thanks in advance.

2D modeling with coupled Electrostatics and Transport in Diluted Species

$
0
0
Hi,

I am new to the Comsol software and may I ask for some help from you?

I try to model the potential and concentration distributions under electric filed in a 2D model. There are 2 bar electrodes (one positive and the other negative) and for simplicity, I built a 2D Axisymmetric model at first, focusing on the negative side only. In Electrostatics, i assigned the axial symmetry boundary as the ground and applied -0.05V on the ring boundaries of the electrode. For the rest of the domain, I used space charge density to solve the charge transfer. In Transport in Diluted Species, I used 3000 mol/m3 solution and assigned +1 and -1 for the valencies of cations and anions respectively for the mass transport.

Then I ran the model with time dependent solver. However, the simulation results for both the concentration and potential are strange (as you can see from the attached images after 2s simulation). I expected to see some gradients surrounding the electrode but not close to axial symmetry boundary. Could someone kindly let me know if there are some mistakes and give me some advice please? Thanks a lot!

Best wishes,

particle tracing fluid flow

$
0
0
I want to remove the “mp” and τ_p terms in drag force equation “ FD=1/τ_p * mp (u-v) how this can be done, please?

How to use Two Different Times steps in Solver Parameters?

$
0
0
Dear Sir,

I am using COMSOL 3.5a.

And I am running my simulation for 6hrs.

But I want to run my simulation in two different time parts. (i.e. for 1hr i used solver parameters for time stepping range is (0,1,3600) (i.e.first value, step size, last value). with initial time step 0.1 and maximum time step is also 0.1.

Now for remaining 2h to 6hr i used solver parameters for time stepping range is (3600,10,21600). with initial time step 0.1 and maximum time step is Auto.

And all this changes I have to do in one single simulation run only.

Whether it is possible?

And if so can you please tell me how I have put or changes all this value in my solver parameters.

Thanking you in advanced.

Vinay Patel.

How can we determine magnetic field of a current carrying wire with finite length?

$
0
0
Hi dear all users
How can we determine magnetic field of a current carrying wire with finite length, and how it is possible to simulate it in time dependent domain in COMSOL.
To simulate and obtain the magnetic field of a wire carrying current, the “magnetic field” module is used. Also to assign current characteristics to wire I have used “multi turn coil-linear”.
We have considered wire length a finite number but the magnetic field of wire corresponds to equations of infinite length.
How can one obtain the magnetic field of a wire with finite length?

Quadrifilar Helix Antenna

$
0
0
Hi!

I'm looking to simulate a Quadrifilar Helix Antenna with infinite balun and was hoping that some one either: Done it before or knows how to do it.

I have built a model in comsol as seen in the picture. I've put the arms, inner conductor and the outer conductor as "Perfect electric conductor" boundary. in the bottom of the center coax cable i've put the boundary between the inner and outer conductor as a "lumped port". I have a far field boundary as seen in the pictures. The outer boundary of the Far field sphere is put to a "Scattering boundary condition"

All domains ar set to air and the the arms and conductors are in copper, the dielectric in the coax is PTFE with epsilon_r = 2.1.

The mesh is set to minimum wavelength of 0.2*wavelength.

When I simulate it, it never seem to converge and ran for a hour on one freq. Thats when i gave up and started thinking that I have done something wrong. I've only done RF simulations for a week and will take any help/lesson I can get and will appreciate it immensely.


Thanks,

Sebastian

Calculation of radial field in the air gap

$
0
0
Hi,
Can any one help me with the calculation of radial field in the air gap. The expression of the field is, Br = Bx*cos(theta)+By*sin(theta).

Suppose I want to calculate Br at 10 location in the air gap. So I need to calculate theta at these 10 locations and separate out Bx and By component at these 10 locations from the solution and then evaluate this expression.

Can somebody give some idea how to do it? I tried to do it this way,
1> cut point 2d.. specified my point as x =52*cos(range(0,2*pi/10,2*pi)), 52*sin(range(0,2*pi/10,2*pi)).
2> derived value->point evaluation -- theta = atan(y/x) , this way I can calulate the angle at these points.

Now the problem is how to find Bx and By at these point and evaluate the expression Br = Bx*cos(theta)+By*sin(theta). I tried bndenv(rmm.Bx) to evaluate Bx at these points. However it couldn't work.

Can any one help me with this?

Thanking you,
Gaurav

Constant issues trying to measure laminar flow and velocity

$
0
0
Hello wizards of COMSOL!

I have a love/hate relationship with this software. I love when it works as it produces beautifully accurate models, but I hate when I can't get it to work... which is most of the time.

I do not have a deep understanding of the program and was wondering if anybody here would be able to help me discover what is wrong with my model. I have tried to attach two designs, one is working and has one inlet and one outlet. The other has two inlets and two outlets. These designs can be found at this google drive link: drive.google.com/drive/folders...jRmS1ZjR2l6V0FSd2c?usp=sharing

Despite spending several hours mucking around with parameters and settings I have not been able to have it successfully produce a result for me.

I think the issue stems from the meshing, so any advice as to what I have done wrong would be greatly appreciated. You will note that my structures are VERY small. The smallest features are only about 20 microns but I can't imagine that is really an issue for the program.

Thank you in advance to anyone who takes the time to help me out here.

Growing disk heat source

$
0
0
Hi Everybody

I have an axial symmetric piece on which I would like to have a surface heat disk source. The radius should grow over time with a defined function.

How is it possible to divide the Energy uniform over the growing disk? I was not able to set this up correctly.

thank you very much for your help.

regards
Vital

Magnetic Field interface and the Moving Mesh interface are incompatible?

$
0
0
Hi everyone,

I've been trying to build a 3D model about magnets moving in a coil for some time but still haven't figured it out. I wonder if anyone has some experience of that.

I followed the 2D example and applied all the same boundary conditions but it just didn't work out. It seems like the Magnetic Field interface and the Moving Mesh interface are incompatible somehow.

An interesting phenomenon I found is that I can solve the stationary study without the Moving Mesh interface, but when I added the Moving Mesh interface even the stationary study failed though it's not included in the stationary study. The failure is due to convergence problem and I noticed that there is a discontinuity in the convergence plot and it suddenly goes up at some point.

Does anyone have any ideas of that?

Thanks,
Yong

New user-defined material

$
0
0
I'd like to add a material to the user-defined materials list.

I've looked through the manual and don't see how to do this.

Furthermore, there are no materials in the database that seem similar enough compared to any others to use as a starting point.

Thanks.
Viewing all 26323 articles
Browse latest View live