Problems in particle_input.dat

Hi, I want ti use particle_input.dat to define the location of particles in a reaction system to do a test. However, when I run this model, some error appears, like this


0605.mfx (82.3 KB)
NiOparticle_input.dat (2.1 KB)
usr_rates_des.f (5.9 KB)

You either need to give a uniform value that applies to every particles or provide a value for each particles.

If I refer to the header in your file:

Coordinates:     T          Must always be T
Phase_ID:        F          1
Diameter:        T          8.0E-05
Density:         F          3731.0
Velocity:        F          0.0 0.0 0.0
Temperature:     T          (Ignored if energy eq. is not solved)
Species:         T          (Ignored if species eq. are not solved) 
User_Scalar:     T          (Ignored if no user scalars are defined)

You need 8 columns of data when you only defined 4:
Column 1-3 : x,y,z coordinates
Column 4: Diameter
Column 5: Temperature (you are solving the energy equation)
Column 6-7: species mass fractions (you have 2 solids species)
Column 8: User scalar (you have des_usr_var_size = 1)

Thank you for your help. I have modify the input data file like this
NiOparticle_input.dat (2.4 KB)
This is still some mistake


If you have defined a des user scalar, you need 8 columns, not 7. I think you also have your y and z coordinates mixed up. z must be between -2mm and +2mm

Thank you so much for your kindly reply. I delete the des user scalar in .mfx file. I try to modify the particle input data as you suggested, it still show some error.


NiOparticle_input.dat (2.4 KB)
0605.mfx (82.3 KB)

You need to carefully match the header of the file (T/F value for each variable) with the number of columns. Here line 27:

Density:         T          3731.0

means you must provide a column of values of the density for each particle. This should be the fifth column.

Now, if you want to use the same density (3731 kg/m^3) for all particle, change line 27 to

Density:         F          3731.0

and then you don’t need the extra column (use the 7 columns you currently have).

2 Likes