Quantcast
Channel: Latest Discussions - COMSOL Forums
Browsing all 25765 articles
Browse latest View live

Exporting Comsol data to Matlab?

Hello everybody, I want to postprocess Comsol data in Matlab. Since Ascii files blow up in size and I get "out of memory error", I'm looking for some other way. I've no experience with Comsol-Matlab...

View Article


Memory problems with mphinterp

I have a large RF simulation, and I need to get the value of the electric field on a rather dense rectilinear grid. For this, I have been using mphinterp. However, I have been running into the problem...

View Article


Variable modifications between solution iterations

I'm developing a transient model using the Livelink interface. The model first calculates an initial solution for the first time window, then I would like to modify the state variable values due to...

View Article

Difficulties with mphselectcoords

Hi everybody, it’s me again asking help with API command: I have a geometry where I need to retrieve face’s number under a given XYZ point: mphselectcoords is the perfect tool for this task and work...

View Article

creating new geometry for a geometry object

Hi all, I am trying to pick out one piece of my original geometry and do some analysis on it. I think this would be easiest if I simply do an intersection operation and set this to a new geometry geom2...

View Article


ModelUtil.load

Hi everyone, when I open a Model in my Java-Code model = ModelUtil.load("Model", filepath); within a ProgressWorker the finished(Throwable t) Methode is called multiple times. Same for...

View Article

progressUpdated()

Hi everyone, When I run my Javacode and have a Task running within a ProgressWorker the progressUpdated-Methode of the ProgressContext Class is updated only a very frew time. The Problem ist the...

View Article

Value of the force density for a element and not for the nodes of a mesh

maybe I was not clear, I try to explain more the problem: The element : the nodes composed a element, for exemple 8 nodes composed a simple linear element (a little cubic). The object : is the...

View Article


Matlab Livelink: Plotting features rather than whole geometries

Is there a method to plot features rather than full geometries when using matlab livelink? (like mphgeom)

View Article


Copying Geometry Features from 2D to extrude in 3D within Matlab Livelink

Portions of my model are 2D axisymetric and other portions are 3D. I've created 2 model nodes to handle these two geometries, we'll call them 'geom2' for 2D and 'geom3' for 3D. My 3D features are just...

View Article

LiveLink matlab, how to plot field distributions?

Hi, I am considering an optical fiber in 2D, where I calculate eigenmodes using the RF module and do a sweep of the wavelength in Matlab using a for loop. Inside the for loop I only have the parameters...

View Article

ModelUtil.connect(solverHost, solverPort);

Hi everyone, I try to compair the results of two solvers running in parallel on two different comsol-servers. Therefor I try to establish a link from my Java-API to two comsol server. But only one...

View Article

MATLAB LiveLink license issues

Dear COMSOL users, I want to run a COMSOL job via the MATLAB link on my Computer. The license Type I use is Floating Network. When there are no licenses available on the server, I get very lengthy...

View Article


Graphics Window Transparency

I have attached a file showing what my problem is. On the right is the graphics display, which I like the look of. When I export the image or use Matlab to plot the data with mphplot it looks like the...

View Article

Getting indices of boundary conditions in Matlab?

I am using the Comsol LiveLink for Matlab and at the moment I am trying to extract those dofs from a mesh, on which boundary conditions are implicated. In Comsol 3.5 one could use something like...

View Article


Solving Self - Consistent Schrodinger and Poisson with MATLAB and COMSOL...

I'm a COMSOL 4.2a user. I need to solve 2D self-consistent Schrodinger and Poisson equation. Thus, I need to feed the potential values and the wavefunctions to the Schrodinger and Poisson equations as...

View Article

Setting initial solution from Matlab

Hi, I have a non-linear problem and want to get the stiffness matrix and some other stuff in a special linearisation point. For this I need to set the initial guess of a solver. There the problems...

View Article


coordinates of dofs?

Hello everyone, I am using Comsol 4.2a and the matlab LiveLinkand I am looking for a way of finding all the dofs on a special entity in matlab. Here is what I do: I create a CoefficientForm-PDE and...

View Article

Integration of two variables in two different models

Hi I'm running two 2D mode analysis calculations on two different electromagnetic models with the same geometry but different materials. I would like to calculate an integral of the product between one...

View Article

Extract Inner-Product-Matrices to Matlab?

Hello to all! Does anyone know, how to access the inner product matrices in Comsol 4.2a in Matlab? I would like to compute different norms of a solution u. The Euclidian norm simply is: u' * u If I...

View Article
Browsing all 25765 articles
Browse latest View live


Latest Images