Analysis Error Caused by "coeffs" That Does Not Exist in the geometry.xml File<revision 1>

Environment:

  • Using Docker on Ubuntu, running OpenMC version 0.15.0

Situation:
When performing a simulation with the minimal input files shown below, an error appears even though there is no coeffs present in the geometry.xml.

<geometry>
  <surface id="1" type="x-plane" x0="0.0" boundary="vacuum"/>
  <surface id="2" type="x-plane" x0="1.0" boundary="vacuum"/>
  <cell id="1" material="1">
    <region>(-1 &amp; +2)</region>
  </cell>
</geometry>

<materials>
  <material id="1">
    <density value="1.0" units="g/cm3"/>
    <nuclide name="H1" ao="2.0"/>
    <nuclide name="O16" ao="1.0"/>
  </material>
</materials>

<settings>
  <run_mode>fixed source</run_mode>
  <batches>5</batches>
  <inactive>0</inactive>
  <particles>100</particles>
  <fixed_source>
    <source>
      <space type="point" x="0.5" y="0.0" z="0.0"/>
    </source>
  </fixed_source>
</settings>

Error Message:

swift

ERROR: Node "coeffs" is not a member of the "surface" XML node
Abort(-1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 0

There are no other files in the working directory besides geometry.xml, materials.xml, and settings.xml.

Since it’s the end of the year, I understand everyone is busy, but if anyone has time, I would greatly appreciate any advice on how to resolve this issue. Thank you!

Hi YukariKudo_BE, welcome to the openmc community.
The coeffs that openmc asked were the surface coefficient being used for each surface type. So the xml file should look like this

  <surface id="1" type="x-plane" coeffs="0.0" boundary="vacuum"/>
  <surface id="2" type="x-plane" coeffs="1.0" boundary="vacuum"/>

Also, I recommend you to use the pythonAPI feature, i.e. basic functions as shown in the manual openmc – Basic Functionality β€” OpenMC Documentation
You could see some examples from the openmc notebooks git
GitHub - openmc-dev/openmc-notebooks at main

1 Like