|
[Sponsors] |
UDF for variable mass flow inlet boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 14, 2017, 02:08 |
UDF for variable mass flow inlet boundary condition
|
#1 |
New Member
steve
Join Date: Apr 2017
Posts: 3
Rep Power: 9 |
Hi all,
I need to specify a variable mass flow inlet as a sinusoidal function of time. I am new to FLUENT and managed to write the following code. It shows an error when interpreted in FLUENT.The following message displays "line 5: invalid lvalue in assignment". Total simulation time = 0.003125 s. Time step size = 1.13e-5. Could anyone tell where i'm going wrong? #include "udf.h" DEFINE_PROFILE(inlet_mf,th,i) { face_t f; for(CURRENT_TIME=0; CURRENT_TIME<=0.003125; CURRENT_TIME = CURRENT_TIME+1.13e-5) F_PROFILE(f,th,i) = 0.3866*sin(2010.88*CURRENT_TIME) printf("Mass flow rate for new time step updated to %d\n",F_PROFILE); } Last edited by cfd_steve; April 19, 2017 at 08:44. Reason: code not specified |
|
Tags |
udf code, variable bc |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 07:40 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |
Wrong flow in ratating domain problem | Sanyo | CFX | 17 | August 15, 2015 07:20 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 08:00 |