|
[Sponsors] |
November 28, 2012, 23:18 |
How to get gata of previous time step
|
#1 |
New Member
Johnny
Join Date: Aug 2012
Posts: 3
Rep Power: 13 |
Hi,
I am trying to define a source to a cell zone. The source is a function of temperature of the previous time step. I wrote the UDF as follows: include "udf.h" DEFINE_SOURCE(heat_source,c,t,dS,eqn) { real x[ND_ND]; real source; real tem1; tem1=C_T_M1(c,t); source=tem1/1000; dS[eqn]=0.0; return source; } I was able to interpreted or complied the UDF and loaded it and defined to the cell zone. however, when trying to run Fluent, It gave the information: FLUENT received fatal signal (ACCESS_VIOLATION) Can anybody help me to solve this problem? Regards |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading forces from previous time step within solver | SD@TUB | OpenFOAM Programming & Development | 5 | April 24, 2023 11:51 |
Time step size and max iterations per time step | pUl| | FLUENT | 33 | October 23, 2020 22:50 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 04:13 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 14:09 |