|
[Sponsors] |
July 2, 2004, 02:01 |
problem in getting second derivatives
|
#1 |
Guest
Posts: n/a
|
hello, i wanted to solve an additional equation using USER FORTRAN code. in this equation I require second order derivatives of velocity. As in CFX there is no direct way to get second derivative (i e gradient of a gradient), i defined a temporary additional variable ( unspecified and hence algebraic type) to get the first derivative and then in one point of my main fortran program i am calling the gradient of the temporary variable (so that i can get the second derivative of velocity). the fortran program is compiling well. but when i link up the program with solver , it is returning an error. now i am getting doubt whether i will be able to solve second derivatives or not or is there is any care that should be taken while getting gradient of a gradient.
i will be extremely thankful if i get any solutions or suggestions for this regards sreenivas |
|
July 11, 2004, 19:27 |
Re: problem in getting second derivatives
|
#2 |
Guest
Posts: n/a
|
Note that there is an example related to this in the documentation (calculating one AV as the gradient of another). The gradients are not actually stored, unless something tries to use them as a source term though CEL for another variable (at least this was the behavior in 5.6). Use the gradient as the source to a dummy equation, and then the gradients will be available for further calculations.
Jeff |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with interFoam; Wave/wiggle alpha1 behavior | JonW | OpenFOAM | 10 | February 4, 2023 07:27 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
Problem in implementing cht | tilek | CFX | 3 | May 8, 2011 08:39 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |