Multiple attributes to block

Topics related to boundary conditions.

Multiple attributes to block

Postby bouzias » Fri Dec 20, 2013 1:13 pm

Hello!

I'd like to ask if it is possible to assign multiple attribute values to a single block.

For example, let's say that we create a block from two groups (group1 and group2). Each group consists of a set of faces. Is it possible to assign to the part of the block that consists of group1 the attribute with value att1 (for example) and to the part of the block that consists of group2 the attribute with value att2?

What I want to do is to create a surface triangular mesh, whose triangles will have different attributes but lie in the same block. And that is because eventually I need to create a large number of blocks.

Thanx in advance and keep up the great work!
bouzias
 
Posts: 5
Joined: Fri Dec 20, 2013 7:17 am

Re: Multiple attributes to block

Postby csimsoft Moderator » Tue Jan 07, 2014 4:35 pm

Trelis does not support assigning one attribute to a block that is relevant to subset within the block. The attribute pertains to all entities within the block. Blocks are typically used to assign material properties. Consider giving both blocks two attributes, where the first attribute is the same attribute (which would indicate that some user-defined block id) and that second attribute would be that special, unique value you want to assign to the specific triangles. What you could do it the following:

reset
create surface rectangle width 1
vol 1 copy move y 1.5
surface all scheme trimesh
mesh surf all
block 1 surface 1
block 2 surface 2

#give each block two attributes
block all attribute count 2

#assign
block 1 attribute index 1 value 1
block 2 attribute index 1 value 1
block 1 attribute index 2 value 555
block 2 attribute index 2 value 444
csimsoft
csimsoft Moderator
 
Posts: 236
Joined: Tue Feb 14, 2012 5:59 pm
Location: American Fork, UT

Re: Multiple attributes to block

Postby bouzias » Mon Jan 13, 2014 3:18 am

Thanks for the answer!

Actually this is exactly what I've done to deal with the situation.
bouzias
 
Posts: 5
Joined: Fri Dec 20, 2013 7:17 am


Return to Boundary Conditions

Who is online

Users browsing this forum: No registered users and 0 guests

cron

Search / Mark

User Control Panel

Login

Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 5 minutes)
Most users ever online was 50 on Mon Feb 23, 2015 7:54 pm

Users browsing this forum: No registered users and 0 guests