|
[Sponsors] |
fluent user defined function fot time dependent heat transfer |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 11, 2019, 23:43 |
fluent user defined function fot time dependent heat transfer
|
#1 |
New Member
Enrique Santana
Join Date: Apr 2019
Posts: 2
Rep Power: 0 |
Hi!
im trying to make a transient planar model in which there is a time dependent heat flux (1.67e+17 W/m^2) during a period of time (60ns). The geometry is a rectangle and only one side has this condition. I need to study the phase change that happens to the fluid inside the domain and the effects of such. To define the heat flux I'm trying to use a user defined function but I'm not skilled at C therefore I've been reading threads for a while and have come up with what I tough was the function I needed. Fluent interprets it without errors but I a message during simulation that says: chip-exec: heat_flux: argument 1: incorrect type (38): int expectedchip-exec: heat_flux: argument 2: incorrect type (5): pointer expectedchip-exec: heat_flux: argument 3: incorrect type (0) (every iteration with the same and different numbers for argument and type()) and when the simulation ends if I see the results they are as if there was no heat flux at all. (The geometry is really small 5e-11m^2 so there's supposed to at least be a rise in temperature but there isn't). The code I'm using is the following: /************************************************** ********************* heatflux.c UDF for specyjfuing a transient heat flux boundary condition ************************************************** *********************/ #include "udf.h" DEFINE_PROFILE(heat_flux, thread, i) { face_t f; Thread *f_thread; real t=CURRENT_TIME; if (t<=60e-9) {real a=1.67e+17;} else {real a=0;} } Any help would be very appreciated. |
|
Tags |
fluent - udf, user defined functions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bash script for pseudo-parallel usage of reconstructPar | kwardle | OpenFOAM Post-Processing | 42 | May 7, 2024 23:17 |
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores | puneet336 | OpenFOAM Running, Solving & CFD | 11 | April 7, 2019 00:58 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 02:50 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 00:01 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |