CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Writing the calculated value in DPM_SCALAR_UPDATE to file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2022, 10:39
Default Writing the calculated value in DPM_SCALAR_UPDATE to file
  #1
New Member
 
Jam
Join Date: Aug 2021
Posts: 15
Rep Power: 5
marijam is on a distinguished road
Hello,

I have a multiphase (multi-species) gas-liquid eulerian flow and I want to use DPM for using massless-particles as a separate phase and record the concentrations that particles pass through (if we consider particles as microorganisms) of several species(substrate and O2) in the Eulerian liquid phase in their path.

I am trying to calculate the concentrations of 2 species in the cells where a particle exists (through macro DEFINE_DPM_SCALAR_UPDATE) and store them in a variable (P_USER_REAL(p,0) = (C_YI(c,pt[0],0)/180)*998.2; Cmole=P_USER_REAL(p,0) and then use (DEFINE_EXECUTE_AT_END) to write these values in each time step into a file with:

fyleS = fopen("FileS.out","a");

fprintf( fyleS,"%e \n",Cmole)




for each particle, there should be two concentrations. I have 100 particles, but in each time step it only writes 3 values (which is still 3 values when I have only one particle)

Can anyone help me with this?
marijam is offline   Reply With Quote

Reply

Tags
dpm, fluent, multiphase, udf, write to file


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[openSmoke] LaminarSMOKE compilation error mdhfiz OpenFOAM Community Contributions 8 July 2, 2024 11:32
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


All times are GMT -4. The time now is 07:18.