I want to define the Richardson number as an own expression. But therefore I need the partial derivative of the temperature dT/dx (read as partial) and of the velocity du/dx. How can I define it? I have only found examples with UserFortran and the calculation of the gradient. Do I also have to use UserFortran but how does it have to look like?
Re: partial derivative
UserFortran is the only way to get your spacial derivatives. If you look in the back end of the Solver Modeling manual, you will see several examples on calculating the gradients of variables in User Fortran. It's pretty straight forward to take these and modify them for your use. The actual files are located in the examples directory on you installation path as well.
|All times are GMT -4. The time now is 02:20.|