Hi everyone,
This is a fairly basic question, but is there a best practice for defining a domain order parameter and its spatial gradient that is not coupled to any other variables?
For example, I've tried introducing a scalarType or scalargradType explicitly in the equations.cc, in the form of
scalarvalueType psi;
psi= std::tanh(x);
which gives me qualitatively the results I'm looking for, but becomes kind of cumbersome if I have to write out the spatial derivatives as well. Instead, is it possible to define the domain parameter as a variable such as
set_variable_name(1, "psi");
set_variable_type(1, SCALAR);
set_variable_equation_type(1, TIME_INDEPENDENT);
set_dependencies_value_term_RHS(1, "");
set_dependencies_gradient_term_RHS(1, "");
and use variable_list.get_scalar_gradient, or is there a better approach?
Best,
Andrew