Skip to content

How to set node set Ids #288

Discussion options

You must be logged in to vote

When you first define the exodus model, you will tell it how many node sets the model will contain (num_ns):

        >>> status = exo.put_info(title, num_dims, num_nodes, num_elems,
        ...                      num_blocks, num_ns, num_ss)

Then, for each of those num_ns nodesets, you tell exodus the ID and count of nodes and distribution factors:

        >>> exo.put_set_params('EX_NODE_SET', node_set_id,
        ...                 num_ns_nodes, num_ns_dist_facts)

You can then use your code above to actually output the set_nodes. Somewhat convulted and not really pythonic, but this is driven by the C API...

Hope that helps.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@adityaghantasala
Comment options

Answer selected by adityaghantasala
Comment options

You must be logged in to vote
1 reply
@adityaghantasala
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants