Skip to content

Spatial initial condition from file #29595

Answered by GiudGiud
Khaksarkn asked this question in Q&A General
Discussion options

You must be logged in to vote

Hello

If the grid is regular the Piecewise(Multi)Constant Piecewise(Multi)Linear functions can read it, and the FunctionIC can be used:
https://mooseframework.inl.gov/source/functions/PiecewiseMultiConstant.html
https://mooseframework.inl.gov/source/functions/PiecewiseMultiLinear.html

then this
https://mooseframework.inl.gov/source/ics/FunctionIC.html

If not, use a PropertyReadFile user object to read the file (using the "voronoi" mode), then a PiecewiseConstantFromCSV function and a FunctionIC
https://mooseframework.inl.gov/source/userobjects/PropertyReadFile.html
https://mooseframework.inl.gov/source/functions/PiecewiseConstantFromCSV.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Khaksarkn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants