SolutionIC with specific subdomains #31169
Replies: 2 comments 11 replies
-
|
hello it's likely coming from the generic projector. It's not merged because it's not as general as it needs to be. But for your variable type it works Guillaume |
Beta Was this translation helpful? Give feedback.
-
|
I was trying to do this and it got quickly complicated for me to handle it. But I got a new idea to probably circumvent this. A summary of what I have -
Since I am facing issues in creating block 1 in the new simulation (based on eta), I added 2 additional aux variables (c1_total and c2_total) which are present across the domain. This should remove the necessity to create block 1 to be able to read the variables correctly. Now, ideally I should be able to read the variables correctly, then divide the subdomains based on eta. But, now I get an error that c1 is trying to access elements in domain 2. But this miraculously works when I comment out the creation of block 1 (CoupledVarThresholdElementSubdomainModifier), albeit the wrong physics. Is there anything I am missing in my approach? Here is the code I have - |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a solution with 2 subdomains that I want to read into another simulation. The new simulation has 3 subdomains - 2 remaining exactly the same as the previous solution. To initialize this, I use the below Mesh, Variable and IC block -
This should read the
cvariable only from subdomain 0 of the solution to the subdomain 0 of the new simulation. But it is accessing points in subdomain 1 and throwing an error that variablecdoes not exist. Could it be because the subdomain 1 in the new simulation is not yet initialized? Or is it something else?Beta Was this translation helpful? Give feedback.
All reactions