Pass subdomain_id as input file into "ElementSubdomainIDGenerator" #22523
-
Hi, I would like assign different element-wise subdomain_id to different portion of mesh. So far I would like to use "ElementSubdomainIDGenerator" which allows users to re-assign the subdomain_id. But I don't know how to pass the modified subdomain_id as a .txt file to be read by MOOSE subdomain_id (If I have many elements). Do I need to write a custom object somehow to read file and transfer the data to "std::vector" type? Thanks for any suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello Would there happen to be an easier definition of the subdomains than a CSV file list? We support parsed expressions https://mooseframework.inl.gov/source/meshgenerators/ElementSubdomainIDGenerator.html Guillaume |
Beta Was this translation helpful? Give feedback.
Hello
Would there happen to be an easier definition of the subdomains than a CSV file list?
Something like x>1 -> subdomain 2, otherwise subdomain 1 for example
We support parsed expressions
https://mooseframework.inl.gov/source/meshgenerators/ElementSubdomainIDGenerator.html
ElementSubdomainId will read a really long vector, the size of the number of elements, and assign those subdomain ids to each element in the order of their element ID
Guillaume