Quantcast
Channel: COMSOL Forums: How to determine domain number from a given block name.
Browsing latest articles
Browse All 16 View Live

How to determine domain number from a given block name.

Hi I'm currently working with a project where I have to prepare a model to be illuminated in the RF module by microwawes and ultimately being able to determine the location of tumors in human tissue....

View Article



Re: How to determine domain number from a given block name.

Hi Thomas, I have exactly the same problem. What I've used so far: 1. Rebuild geometry after addition of each block.>> model.geom('geom1').run; 2. Get number of domains in...

View Article

Re: How to determine domain number from a given block name.

Thanks, but I must admit that it seems like a really inefficient way to do it, especially when you have a large (more than 10000) amount of objects

View Article

Re: How to determine domain number from a given block name.

Hi Thomas, yes it's inefficient and has a problem that domain numbers will be reassigned after you finalize geometry. I've found another way to solve the problem: activate auto creation of selections...

View Article

Re: How to determine domain number from a given block name.

You just saved me half a day of coding, thank you :)

View Article


Re: How to determine domain number from a given block name.

You saved me a lot of time too - very helpful! I am using this technique in Matlab LiveLink, where the syntax is slighty altered:"model.geom('geom1').feature('feature1').set('createselection','on');"...

View Article
Browsing latest articles
Browse All 16 View Live




Latest Images