simphony / SimCMCLkinetics

https://simcmclkinetics.readthedocs.io
Other
1 stars 0 forks source link

the empty value for cuds in output_results.txt #1

Open ebrahimnorouzi opened 3 years ago

ebrahimnorouzi commented 3 years ago

The values of cuds objects after the simulation are empty in the output_results.txt file.

Here is one example:

- Cuds object:
  uuid: 4c7756a8-5003-496c-b85c-709157e2ab90
  type: cmcl.MEAN_PARTICLE_SIZE
  superclasses: cmcl.MEAN_PARTICLE_SIZE, cmcl.PHYSICAL_QUANTITY, cuba.Class, cuba.Entity
  values: VALUE: 0.0
          UNIT: 
  description: 
    To Be Determined

- Cuds object:
  uuid: ba0bf9e9-5207-4057-a121-19f2e67856dc
  type: cmcl.PARTICLE_NUMBER_DENSITY
  superclasses: cmcl.PARTICLE_NUMBER_DENSITY, cmcl.PHYSICAL_QUANTITY, cuba.Class, cuba.Entity
  values: VALUE: 0.0
          UNIT: 
  description: 
    To Be Determined

- Cuds object:
  uuid: c3f62ba7-373e-4306-836d-d1d57355676d
  type: cmcl.PARTICLE_VOLUME_FRACTION
  superclasses: cmcl.PARTICLE_VOLUME_FRACTION, cmcl.PHYSICAL_QUANTITY, cuba.Class, cuba.Entity
  values: VALUE: 0.0
          UNIT: 
  description: 
    To Be Determined

This output file is generated by running python cb_momic_example.py

Here is the output of that.

New 'CarbonBlackEngine' instantiated!
Model flag changed to #2.

===== Start: KineticsSession =====
CUDS representation of inputs written to: ./input_results.txt
Detected simulation template as CarbonBlack_MoMICSolver
JSON data successfully generated from CUDS objects.
Job submitted successfully, resulting job ID is localhost_2611777339647353
Job still running (attempt 1 of 60)...
Job still running (attempt 2 of 60)...
Job still running (attempt 3 of 60)...
Job still running (attempt 4 of 60)...
Job still running (attempt 5 of 60)...
Job still running (attempt 6 of 60)...
Job finished successfully, output data received.
Job completed, returning JSON representation of output data
CUDS objects have now been populated with simulation results.
CUDS representation of results written to: ./output_results.txt
===== End: KineticsSession =====
mdhillman commented 3 years ago

I've now run each example 3 times (from the head of the 'main' branch), and I cannot reproduce this issue. All output variables are populated with non-zero results.

If @ebrahimnorouzi cannot reproduce the issue on a subsequent try, then I will close it.

ebrahimnorouzi commented 3 years ago

Thank you @mdhillmancmcl , you can close the issue. The error was for the version of osp-core. I used v3.4.0-beta version before. And there isn't any error with the latest version of osp-core.