Quantcast
Channel: COMSOL Forums: How to determine domain number from a given block name.
Viewing all articles
Browse latest Browse all 16

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

$
0
0
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 geometry
>>blkDomainNumber = model.geom('geom1').getNDomains();

It should return the domain number of just added block.

But may be there is a better solution. If you find one, please let me know.

Thanks.

Viewing all articles
Browse latest Browse all 16

Trending Articles