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.

Importing parameterized geometries?

Please login with a confirmed email address before reporting spam

Hey Guys,

I'd like to import geometries used in a previous model which are partly defined with parameters (certain distances, lengths, radii). Is it possible to import an existing geometry into COMSOL without just having the "import"-bracket? I'd need to do some parametric sweeps afterwards and in that case I'd have to build a new model for that.

5 Replies Last Post 2017年5月4日 GMT-4 20:28
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年9月24日 GMT-4 08:27
I am not sure I understand what you mean by "without just having the "import"-bracket ", but from the rest of your post it seems that you can use Insert Sequence.
Best regards,
Jeff
I am not sure I understand what you mean by "without just having the "import"-bracket ", but from the rest of your post it seems that you can use Insert Sequence. Best regards, Jeff

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年9月24日 GMT-4 08:39
Hi Jeff,

that's actually what I mean. But how do I export a sequence? Haven't found the button for that, yet :/ .
Hi Jeff, that's actually what I mean. But how do I export a sequence? Haven't found the button for that, yet :/ .

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年9月24日 GMT-4 09:54
You don't need to export a sequence out of the old file (the one that contains the geometric sequence you want to pass to a new file).
In the new file (the one into which you want to insert the sequence), you add an Insert Sequence node and in that node's settings you point to the old .mph file.
That's it.
In the new file, you'll notice that COMSOL brings in all the geometry parameters for you.
Jeff
You don't need to export a sequence out of the old file (the one that contains the geometric sequence you want to pass to a new file). In the new file (the one into which you want to insert the sequence), you add an Insert Sequence node and in that node's settings you point to the old .mph file. That's it. In the new file, you'll notice that COMSOL brings in all the geometry parameters for you. Jeff

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年9月25日 GMT-4 02:31
Thank you so much!

That made it and it's amazingly easy :). That will make further projects much easier.

Have a nice weekend,
Philipp. :-)
Thank you so much! That made it and it's amazingly easy :). That will make further projects much easier. Have a nice weekend, Philipp. :-)

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 2017年5月4日 GMT-4 20:28
Is it possible to convert a Comsol imported geometry (or the geometry file itself- mphbin) to the original sequence without having the original simulation? Deleted it by mistake.
Is it possible to convert a Comsol imported geometry (or the geometry file itself- mphbin) to the original sequence without having the original simulation? Deleted it by mistake.

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.