
- #WHY IS THERE NO DEVELOPMENT TAB IN COMSOL 5.3 HOW TO#
- #WHY IS THERE NO DEVELOPMENT TAB IN COMSOL 5.3 MANUAL#
('TagName', 'PhysicsInterfaceName', 'GeometryName') įirst, I've opened a 'Topology Optimization of a Loaded Knee Structure' from the model library that is aleady exist. Physics interface: PhysicsInterfaceNameĪt .(Unknown Source)Īt .(Unknown Source)Īt .(Unknown Source)Īt .impl.PhysicsListImpl$d.a(Unknown Source)Īt .impl.PhysicsListImpl$d.execute(Unknown Source)Īt .ClientManagerImpl$d.call(Unknown Source)Īt $Sync.innerRun(Unknown Source)Īt .run(Unknown Source)Īt $nTask(Unknown Source)Īt $n(Unknown Source)Īt .ApplModeCreatorManager.getApplID(Unknown Source)Īt .ApplModeCreatorManager.create(Unknown Source) (rethrown as .FatalReInitializeException) Errors are as follows:Įrror using .PhysicsListImpl/createĬom.: Unknown physics interface The problem is when I try to compile the *.m-file in Matlab. I have already exported the physics interface as a plugin and included it into the COMSOL installation. I am trying to compile with LiveLink for Matlab (Matlab version MATLAB_R2012a) a Comsol model (Comsol version COMSOL 4.3.0.151) that uses a physics interface which I created with the Physics Builder. Also in the future, I want to run my simulations from Comsol and not from Matlab. I just want to evaluate simulations which have taken a lot of time to calculate. PS: I do not want / I cannot run all my simulations again from Matlab.
#WHY IS THERE NO DEVELOPMENT TAB IN COMSOL 5.3 HOW TO#
I do not believe that and I think it is my fault, that I just do not know how to do it. But Matlab always tells me, such a command does not exist, e.g. I thought there might be some kind of a "get" command for all these settings.
#WHY IS THERE NO DEVELOPMENT TAB IN COMSOL 5.3 MANUAL#
In the manual for livelink on page 41 I can find how to create a parametric sweep withīut there is no explanation how to get a list of values and name of those sweeped values out of the model again with Matlab?Īlso: Is there no way to get the names and number of solutions sol1 to soln from matlab? I unfortunately also cannot find anything about that in the manual.ĭoes this really mean I always have to look up all this stuff manually in an extra GUI version of comsol, which I do not want to open, and then type in value by value into matlab? mph file which I have loaded into a variable in matlab with mphload(filename.mph) This should extract the settings, sweeped parameter's names and the value ranges from matlab out of the. with mphgetp(name, 'solname', 'sol1') and how to calculate the effective refractive index neff etc.

I know how to extract the solution lambda e.g. Now I am postprocessing with Matlab livelink in matlab. frequency or a geometry parameter or many of those and for each setting solving the emw 2D mode. I have created a parametric sweep in Comsol, sweeping e.g. Why is it so hard to assign values to mesh points for the next run? It is straightforward to access the results at each mesh point.

(But how do I make that access values from a previous Matlab run?!?)Īssign value dt=0 to mesh points. Or do I want to use a Matlab function under global definitions in Comsol? It either gives weird errors (remove & create, importData) or doesn't do anything Now I have tried to: importData for the interpolation again, remove the interpolation & create a new one etc. Rewrite dt.txt to read: ct.p(1,:), ct.p(2,:), f(ct.d1)=dt_new (obtained by mpheval & Matlab calculation) Reassigning dt values by setIndex and using same indices as mpheval gives me.ī) Using an interpolation function reading dt.txt which contains: x y dt, initially: 0:1:x_max, 0:1:y_max, 0

Now, I use results ct calculated from the Matlab run to compute new dt values:Ĭt = mpheval(model, ct) // this also gives me access to the coordinates of the mesh points.īut how do I get Comsol to take dt_new at each meash point for the next run?!? (I can either use dt=0, make an interpolation file x,y,dt(x,y), maybe make a Matlab fct.) I have a value, dt, which is 0 everywhere in the beginning. I am running Comsol using the LiveLink with Matlab and am trying to do the following:
