--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/77192413-4431-47a1-b286-c6b88275d4b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Does this method still work if I'm not restarting? I'm creating a file in Cubit, then inserting a power distribution into the cubit generated exodus file
(hence the fission_rate_before_bison image), then loading all of this into Bison. It's NOT a case where I run Bison, then update the values and re-run it, thus there is no "old simulation". I did make sure the variable types matched, and got errors when I shoved constant monomial instead of first lagrange as a sanity check. Although I could run a dummy Bison simulation first then over-write the power values, it seemed that writing it onto the mesh prior to running Bison would be cleaner ... assuming it works.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/9cedd6b3-875b-4d51-8fd1-1eb2b74a364b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAK06EuXG9f%3D305LmvBi17Vnm1XbWfz2VZAgvEjuQ88DhE%3D9CJQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/1cfd2397-f6f0-4ab5-9ea3-4f1dd8484ff1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAK06EuV56ax6_nuyoKrUeJRpfr3bVU%3D%3D%2ByS%3DvU33P%3DGhkFWLeA%40mail.gmail.com.
Error reading nodal variable values!
[Error reading nodal variable values!
[Error reading nodal variable values!
[18] ../src/mesh/exodusII_io_helper.C, line Error reading nodal variable values!
[19] ../src/mesh/exodusII_io_helper.C, line Error reading nodal variable values!
[21] ../src/mesh/exodusII_io_helper.C, line 794, compiled Oct 29 2015 at Error reading nodal variable values!
[22] ../src/mesh/exodusII_io_helper.C, line 794, compiled Oct 29 2015 at 09:25:29
// Call the Exodus API to read the nodal variable values
ex_err = exII::ex_get_nodal_var(ex_id,
time_step,
var_index+1,
num_nodes,
&nodal_var_values[0]);
EX_CHECK_ERR(ex_err, "Error reading nodal variable values!");
}
I assumed this was the correct approach for importing the variable fromthis link, but if there is a different/easier way to pull the data in, I'm not pinned to any specific way yet. I attached the input deck in completion if useful. Lastly, if the mesh file is desired I can send that too, although it's 30MB so I didn't include it right away.
Thanks for the help,Jack Galloway
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.--
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/77192413-4431-47a1-b286-c6b88275d4b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
--To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/9cedd6b3-875b-4d51-8fd1-1eb2b74a364b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/1cfd2397-f6f0-4ab5-9ea3-4f1dd8484ff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/8191c8bd-0a78-4fb2-a8b4-b2cb079795a1%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CABVTPJyWXGGi0UmVyuBMqxwZ3CaktMdSCdo0TmYK2oOE5NmwyA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/418f7fea-d756-4184-99d7-8da7d15b0ff8%40googlegroups.com.
Derek and Rick,
Thanks for the comments.First to Rick. I actually specify a value for every node in the problem, not just the fuel. There is some heating that we're interested in coming from more than just fission, so I'm capturing everything power wise that is going on in the domain and grabbing the power for that. I then update every node with either the power, or 0 if the node isn't in the domain (occurs for a very very small fraction of nodes and is expected), so that I specify a value for every node. I have some checks to make sure I am writing "num_nodes" number of values back to the Exodus file.To Derek. I only run Cubit initially to create the mesh. I then run a power calculation in an external code to get powers I'm looking for, then write them back to the exodus file (the first pretty picture), whereupon after that I'm going to want to iterate back and forth and Cubit won't come into play (unless by Cubit you also meant directly accessing the exodus mesh). In my flow I run the power calculation first to update Bison with the correct power profile to then calculate temperatures, swelling etc... and I'll then update the neutronics code. Thus, at the risk of being repetitive, my flow is:(1) Cubit for mesh,(2) Neutronic/photon power calculation,(3) Write nodal powers to Exodus mesh based on calculation (using exodus.py from seacas tools)
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/418f7fea-d756-4184-99d7-8da7d15b0ff8%40googlegroups.com.
Jack, you are iterating with an external code? And you exchange the data by writing exodus files to disk and reading them back in? Do you have any way of modifying the external code? This sounds like a usecase for multiapps and transfers. That would allow you to do all iterations within one run.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAK06EuXM5rcq1THO9-F4289C5EgxYoFFzZYTTSEhx%3DaX_h3fOA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAPxoKqf2s-kJX6zNLC-9zFmKjWab7RCdExb1e4pp%2BSsirxz9Fw%40mail.gmail.com.
exo = exodus.exodus(input_file,'a')
num_nodes = exo.num_nodes()
num_elems = exo.num_elems()
node_map = range(1,num_nodes+1)
elem_map = range(1,num_elems+1)
exo.put_node_id_map(node_map)
exo.put_elem_id_map(elem_map)
...