TAGGED: dpm, dpm-udfs, multiphase-multicomponent, udf
-
-
July 6, 2022 at 12:38 pm
majam
SubscriberHello,
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?
Â
-
July 7, 2022 at 4:06 pm
Rob
Forum ModeratorWhat are the three values?Â
-
July 14, 2022 at 7:02 am
majam
SubscriberIt is three concentrations, which I think depends on the fact that the parcels' time step is different from the simulation time step, it reports the three concentrations in the cells parcel visits in its path.
But still, I can not store the same information for all the parcels. I mean writin gall the concentrations of the cells that all the parcels visit in their paths.
Can anyone help me with this?
-
- The topic ‘Writing the calculated value in DPM_SCALAR_UPDATE to file’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- convergence issue for transonic flow
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Point exception in erosion calculation
- Errors with multi-connected bodies using AQWA
- Script Error Ansys
-
2542
-
933
-
792
-
599
-
591
© 2025 Copyright ANSYS, Inc. All rights reserved.