Solve COMSOL Spring Deformation with Variable Constraint | Beginner Problem

  • Thread starter Thread starter Fprime
  • Start date Start date
  • Tags Tags
    Beginner Comsol
AI Thread Summary
In COMSOL, users can model a metal spring by fixing one end and applying a variable constraint to the other end to analyze deformation. Instead of manually inputting values, the Parametric Solver allows for defining a parameter that can be varied over a range, facilitating the plotting of deformation results. Users can also export the model as an .m file to integrate with MATLAB, enabling more complex computations and geometry adjustments based on parameters. However, utilizing MATLAB for simulations may present a steep learning curve, as it requires familiarity with coding and trial-and-error methods. Overall, leveraging these techniques can streamline the simulation process and enhance efficiency in modeling spring deformation.
Fprime
Messages
2
Reaction score
0
Greetings.

I'm new to COMSOL and am in the stage where I know what I want done, but I just can't get the software to do it.

Suppose I model out a metal spring, and fix one end of it in place. I want to pull on the other end, and then plot some value relevant to the deformation of the spring. Right now, I can input one value as a constraint in the boundary settings, and that works fine. I get my deformation value, but it's slow and tedious to plug in one value at a time, and wait for the solution.

What I want to do is have COMSOL do this for a range of values, and then plot the resulting values. I know it's possible to put in an expression containing variables in the constraint box, but I can't get it to work.

I hope this is an easy question to answer, thanks for helping a newbie out.
 
Engineering news on Phys.org
Anyone?
 
Since I only used Comsol for EM simulations I don't know the module you use but, maybe you could also define the parameter you want to change within the solver itself. In Solver Parameters, you can define one parameter (which in my case is usually the free space wavelength) and use Parametric Solver. This solves the problem for each value.
e.g.
Parameter name: Lambda
Values: 1540e-9:1e-9:1560e-9
then I write Lambda to the dialog box for the free space wl.


Well, also you can export the whole problem as an .m file, and open it up with Comsol with Matlab, from there on, your whole computation will be a block of Comsol code within any kind of Matlab code.

I use this often, since I need to reinitialize my geometry and mesh due to the parameter. For example, if I take radius of a circle in my geometry as a parameter, the preceding trick will fail, since a change in radius will present a new problem and geometry.

I mean you could define a variable for an initial condition value, like

for radius=10e-6:1e-6:20e-6
...
Comsol code in which "radius" is used as one of the parameters
...
end

this would for every time create a new FEM problem (geometry, boundary conditions, mesh etc.) solve it, and save it if you code it down.

If you can, stay away from the latter technique, since working with the simulation as a .m code has a steep learning curve (not that it is hard though, because it is dependent on trial and error.)
 
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
I have an engine that uses a dry sump oiling system. The oil collection pan has three AN fittings to use for scavenging. Two of the fittings are approximately on the same level, the third is about 1/2 to 3/4 inch higher than the other two. The system ran for years with no problem using a three stage pump (one pressure and two scavenge stages). The two scavenge stages were connected at times to any two of the three AN fittings on the tank. Recently I tried an upgrade to a four stage pump...
Back
Top