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

Outlet boundary condition in PDE coefficient form

$
0
0
Hi guys,

I'm trying to simulate the charge transport equation for 3 species (electron, positive and negative ion) using the PDE module coefficient form.

Here's my question, How can I simulate "outflow" boundary condition for any one of these species in the model?

From mathematical point of view, I understand that "Outflow" means Neumann boundary condition. The problem is, Neumann BC in "PDE coefficient form" couldn't be selected for each variable separately, in contrast to the Dirichlet BC which gives us the choice for choosing the variable on any boundary .

It seems to me that the only solution for this problem is to have 3 coefficient form modules, one for each species. I think there should be easier way for this problem.

Any suggestion is appreciated. Version: 4.3a

Regards,
Peyman.

Solution is not converging for solar cell problem.

$
0
0
Hello everyone,

I'm trying to simulate a solar cell with four layers, and I got success with the one dimensional problem. But when I tried the same in two dimensions, the solution is not converging. I'd done the things I can do with my little knowledge in Comsol, still I am not getting positive results.

Thanks in advance for your help.

Regards
Binoy

Motion of a Deformable Solid in a Fluid

$
0
0
Hi there,

I want to study the motion of a deformable solid in a fluid; the red blood cell's motion in a capillary. I don't know if COMSOL is a good choice for this kind of problem. I would be grateful if anyone could please help me.

In addition, for the very first step, I want to study a very simple case; something like motion of a rigid sphere (circle) in a cylinder (2D channel).

Then, I'll try to add the elasticity of the cell, which does not seem to be easy!

Any suggestion, reference, tutorial, or sample, is appreciated!

Thanks

Laminar Flow in Mixer Tank

$
0
0
Dear Sir,

I am trying to simulate a mixer tank with impeller (cubic tank with center impeller with four blade rotating around z-axis). I am using "Rotating Machinery, Laminar Flow (rmspf)" to simulate my mixer tank. The problem is when I am using a Frozen Rotor to compute the velocity filed and pressure filed the study going well and converged but when I try to use Time Dependent study the solution didn't converged and I got many problems. Please any one can help me solve this problem??

Best Regard's,

Eng. Mohammed A. Alameedi

Prestressed piezoelectric analysis in frequency domain

$
0
0
Hi everyone,

I'm trying to simulate the prestress effect on the resonance frequency of a piezoelectric material using the "piezoelectric devices" physics.

I'm trying to do it in two steps :
1. Apply the static force to the structure and solve the problem using a stationary study and store the solution.
2. I use the stored solution to initialize the variables of the frequency domain step. I disable the "boundary load" condition and apply voltage to the piezoelectric material.

The result seems not good. when i look at the 3D stress for different values of the prestress the result remain unchanged.

I believe i'm missing something here, in particular the transition from step 1 to step 2.

Could you please help ?

thank you

Complex swept meshes

$
0
0
Hi, I would like to build a "relatively" sophisticated swept mesh which would involve the step of building a nice 2D mesh and then mapping that. In particular, on that 2D mesh I'd like to have some boundary layers. Maybe that 2D mesh would itself have some swept or mapped components.

But once I'm making a 3D mesh and choose triangular on boundary then I don't have any options for doing much other than size and corner refinement.

Am I missing something - should I make a 2D geometry somewhere (in a different component) and mesh that and import? Any case studies showing this?

Thanks, John

Geometry primitives

$
0
0
Does Comsol have a primitive for a block with rounded edges? I am using the software for teaching and do not want to see sharp edges in electrostatics. I also do not want to spend a lot of time standing live before class defining a complicated geometry so a single primitive would be ideal. Is there a library of primitives one can download?

failed to generate mesh for domain; intersecting face elements

$
0
0
Hello,

I'm getting the errors stated in the title, i.e. the mesh failed to generate and there are intersecting face elements. How do I fix this?

I wish I could attach the file but I get a "file size error."

Please help

Help needed with model to find acoustic transmission loss of a membrane.

$
0
0
I've been trying to 2 weeks now to get this model working with no joy so far.

It's a membrane with a mass attached to the centre. I have YM, PR & density for membrane & mass.

I need to calculate the transmission loss the membrane+mass provides to acoustic waves that pass through the membrane+mass.

I've tried to replicate an impedance tube within comsol using a long cuboid shape with the membrane-mass half way along. I've used 26 PMLs surrounding the cuboid to get rid of reflections.

I've been using intop1 & intop2 with either a plane wave radiation source on the source side wall, or a background field (the domain before the membrane-mass).

I've also read somewhere about adding face loads to the membrane-mass.

Any help in getting this model to work would be hugely beneficial,

Thanks



Cannot evaluate expression : undefined variable - Comsol 5

$
0
0
Hi,
I am new to comsol, I am using Comsol 5 as apart of my project. I am trying to run simple electrolysis model and it is showing the following error

Cannot evaluate expression.
Undefined variable.
- Variable: comp1.phil
- Geometry: geom1
- Domain: 67
Failed to evaluate expression.
- Expression: comp1.phil
- Plot: slc1 (Slice)

Can you please help me?

I am attaching the model

Assigning different material property to a solid in COMSOL

$
0
0
Please can anyone answer my question?

Assume you have Young modulus (E) date of a degrading material saved as a spreadsheet E(x,y,z). That means the material has different E all over the volume in a specified time. The question is that how can I assign this property data to a solid material in COMSOL. I tried to use the interpolation function, but it shows the error of 'failed to evaluate variable Jacobian'.

Many thanks

Recoverable error in residual, but solver could not recover.

$
0
0
Recoverable error in residual, but solver could not recover.

What is the meaning of this error ?

Failed to evaluate variable Jacobian

$
0
0
Hi,
I'm trying to implement Lithium-ion battery 2D tutorial on a 3D structure. I followed all steps but COMSOL gives me this error:
Failed to evaluate variable Jacobian.
- Variable: comp1.liion.cs_surface
- Geometry: 1
- Domain: 6
Domain 6 is the separator between anode and cathode. Its thickness is 0.1mm.
I can't figure out what this error is about. I appreciate any advice.

Best,
Mohad

Determine the damping coefficient

$
0
0
Hi,

I am designing a cantilever with specific dimensions in the micro scale, and using the electromechanics module in order to study the cantilevers behavior in the stationary and eigenfrequency cases. After getting the eigenmodes, I am interested in knowing how will my beam displace w.r.t. time (i.e. the transient analysis). Since there is no a transient analysis, I am planning to carry out the frequency domain analysis and then inverse Fourier transform the results to get the change in displacements w.r.t time. In the MEMS module, it mentions that in order to carry out the frequency analysis, I should define my damping coefficients alpha and beta. Can these coefficients be determined through comsol (although I don't think it is possible) or shall I determine them analytically?

Create an electric terminal in physics builder

$
0
0
Hi,

I am trying to create a boundary condition feature in physics builder that functions similar to an '(electric) terminal' in AC/DC physics module.

At least, I would like to know if it is possible to make an 'electric terminal node' through physics builder.

This is because I would like to use an electric current as an input in the thermoelectric physics interface provided in COMSOL 4.3. In the thermoelectric physics interface (COMSOL 4.3), only an electric potential is an input. And I am having trouble with creating terminal node through physics builder.

Any help is appreciated.

Thank you


high mach number flow simulation (CFD)

$
0
0
Hi
i want to simulate an airfoil in high mach flow .
i am using high mach number flow module k-epsilon method .also adaptive mesh method employed to finer meshing near shock wave region .
for the special case of airfoil, simulation for all velocity converged(even for higher than 10 mach number flow) and result are acceptable .but when i change slightly dimension of the airfoil ,simulation cannot be converged,even in very low mach number(nearly 2 mach ). I am really confused.nearly two month i am working on this simulation but i can not identify the problem .
to solve the problem please help me.
best regard

Hydrogen storage system

$
0
0
anybody have the solved model of hydrogen storage system in comsol ?

how to export the deformed geometry

$
0
0
Hello.
I try to modify the geometry after the sold mechanics(solid) simulation.
(I want to add and cut some blocks to the deformed body, and do other physics!!)
But, I can't export the deformed geometry.
I can export deformed mesh, but it can't be modified in the geometry section. Cutting, and differenciating and so on.

How can I export the deformed geometry?

Multiphysics coupling

$
0
0
I am trying to solve a coupled model using the PDE Coefficient Form. The computational domain (x:0,RR) includes 3 subdomains . The mathematical model is comprised of Poisson and Helmholtz equations (ODEs). The dependent variables are the same for the whole computational domain, but each subdomain has ODE of different analytic structure. This makes the model a bit special – the dependent variables are the same for the entire computational domain, but the subdomain and boundary equations differ from one subdomain to another.
What solving strategy should fit this type of problem in order to generate the numerical solution?

The problem was solved using a simple 1D computational domain by the shooting method for numerically evaluating some unknown boundary values. Given that the shooting method is suitable only for 1D problems, what type of method should be used for 2D/3D computational domains?

Any advice or hints would be much appreciated.

failed to evaluate variable, failed to evaluate expression, division by zero

$
0
0
The error messages "failed to evaluate variable", "failed to evaluate expression", and "division by zero" can occur when you add a *new* physics node to a model that you have already solved and then you try to re-solve.
The problem can be that earlier you have set the following in your solution node:
Values of Dependent Variables > Initial values of variables solved for
Method: solution
Study: study 1 (for example)
Selection: Automatic

The errors are coming since COMSOL is looking for "initial conditions" for the new physics variable to come from the stored solution, which doesn't contain any information on the new physics variables that have just been added to the model.

One solution is therefore to set
Method: Initial expression
Study: Zero solution
Then COMSOL will be able to solve the model including the new physics node that you have added.
-DW
Viewing all 26323 articles
Browse latest View live