Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Overwriting the geometry inside Comsol

Please login with a confirmed email address before reporting spam

Hi,

I have a geometry already present inside a comsol model. I there any way to update the geometry without deleting the previous geometry from the comsol server as I am using comsol 4.2 with matlab?

Thanks,

Vivek

2 Replies Last Post Sep 5, 2011, 8:55 a.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 2, 2011, 3:35 p.m. EDT
Hi

there is no "versioning" of the geoemtry, you must redefine a new geometry (but you can have several in the same file, you need to define a new model though)

--
Good luck
Ivar
Hi there is no "versioning" of the geoemtry, you must redefine a new geometry (but you can have several in the same file, you need to define a new model though) -- Good luck Ivar

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 5, 2011, 8:55 a.m. EDT
Hi

It depend on what you mean by "update".

You can always change parameters in an existing model by using the set() method on the object you wish to change. This work exactly as in the Comsol Desktop such that meshes, settings etc. are updated automatically before solving the model.

Using Matlab you can also introduce new geometrical objects (or remove them).

For very large changes to the geometry is can be easier to delete the old geometry and set up a new one, but that depends very much on what you wish to do.

--
Lars Gregersen
Comsol Denmark
Hi It depend on what you mean by "update". You can always change parameters in an existing model by using the set() method on the object you wish to change. This work exactly as in the Comsol Desktop such that meshes, settings etc. are updated automatically before solving the model. Using Matlab you can also introduce new geometrical objects (or remove them). For very large changes to the geometry is can be easier to delete the old geometry and set up a new one, but that depends very much on what you wish to do. -- Lars Gregersen Comsol Denmark

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.