1. Load velocity by "addRequiredParam". How can I use the gradient of velocity in computeQpResidual ?
2. Have a postprocessor as an integrator and the output is scalar variable (i.e. change with time). How can I use the output in a ScalarKernel? Any ways I can load this postprocessor, like a coupled variable or required parameter?
Thank you. Just start learning MOOSE.G
--
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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/404042c7-6d19-4286-a4e2-17dcc88563ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Sep 25, 2017 at 3:55 PM, guanheng zhang <zhangg...@gmail.com> wrote:
1. Load velocity by "addRequiredParam". How can I use the gradient of velocity in computeQpResidual ?Didn't Andy answer this question on a thread last week? Is this velocity just a function of space and time or is it a function of coupled variables? If the latter, you should look into DerivativeParsedMaterial. If the former, and you are supplying your velocity through a Function, then you should do the derivative of the velocity (with respect to space) by hand and pass that in as another function. It could be interesting to have a utility that allows us to get partial derivatives of a function with respect to x,y,z,t within kernels etc. but I don't think we currently have that capability.2. Have a postprocessor as an integrator and the output is scalar variable (i.e. change with time). How can I use the output in a ScalarKernel? Any ways I can load this postprocessor, like a coupled variable or required parameter?Postprocessor values are single scalars. You can choose to calculate them on linear, non-linear iterations, on timestep_begin or timestep_end (see documentation here: http://mooseframework.org/wiki/MooseSystems/Postprocessors/). You load the Postprocessor into a ScalarKernel (or regular Kernel or many other moose objects) with params.addParam<PostprocessorName>. See the DefaultPostprocessorDiffusion.C in the test/src/kernels directory for an example.Alex
Thank you. Just start learning MOOSE.G
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/0dbc52ea-b6e3-4d2e-bb9d-209b297d1986%40googlegroups.com.
On Mon, Sep 25, 2017 at 3:55 PM, guanheng zhang <zhangg...@gmail.com> wrote:
1. Load velocity by "addRequiredParam". How can I use the gradient of velocity in computeQpResidual ?Didn't Andy answer this question on a thread last week? Is this velocity just a function of space and time or is it a function of coupled variables? If the latter, you should look into DerivativeParsedMaterial. If the former, and you are supplying your velocity through a Function, then you should do the derivative of the velocity (with respect to space) by hand and pass that in as another function. It could be interesting to have a utility that allows us to get partial derivatives of a function with respect to x,y,z,t within kernels etc. but I don't think we currently have that capability.2. Have a postprocessor as an integrator and the output is scalar variable (i.e. change with time). How can I use the output in a ScalarKernel? Any ways I can load this postprocessor, like a coupled variable or required parameter?Postprocessor values are single scalars. You can choose to calculate them on linear, non-linear iterations, on timestep_begin or timestep_end (see documentation here: http://mooseframework.org/wiki/MooseSystems/Postprocessors/). You load the Postprocessor into a ScalarKernel (or regular Kernel or many other moose objects) with params.addParam<PostprocessorName>. See the DefaultPostprocessorDiffusion.C in the test/src/kernels directory for an example.Alex
Thank you. Just start learning MOOSE.G
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/516e7b4a-e865-4987-a897-7410da3b011d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/dce30de1-cbb6-418f-ba18-53bcf22910e8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/dce30de1-cbb6-418f-ba18-53bcf22910e8%40googlegroups.com.