0 votes
in AEM3D by [email protected] (150 points)

Hi Team,

We are currently setting up a simulation using AEM3D and encountered an issue while trying to use the dynamic boundary conditions feature through the dynamic_bc.xml file.

The goal is to run the AEM3D preprocessor using this dynamic XML file along with the LagoonBathymetry.dat file to run the sparse data and usedata files.

However, the preprocessor throws the following fatal error.

FATAL ERROR In Get_BC_Sets Improper keyword = <Variable> found in file dynamic_bc_modified.xml
Here is the xml file
<?xml version="1.0" encoding="UTF-8"?>
<AEM3DDynamicBC>
  <Variable>
    <name>h</name>
    <i>2</i>
    <j>5</j>
    <key>HEIGHT</key>
  </Variable>
  <Variable>
    <name>s</name>
    <i>2</i>
    <j>5</j>
    <k>3</k>
    <key>SALINITY</key>
  </Variable>
  <Variable>
    <name>a</name>
    <key>CONSTANT</key>
    <constant>3.33</constant>
  </Variable>
  <Range_Variable>
    <name>t</name>
    <key>TIME_OF_DAY</key>
  </Range_Variable>
  <Range>
    <maxValue>0.5</maxValue>
    <script>a*sin(h)+1.1</script>
  </Range>
  <Range>
    <minValue>0.5</minValue>
    <script>a*sin(h)+s</script>
  </Range>
  <bc>2</bc>
  <bc_key>OUTFLOW</bc_key>
</AEM3DDynamicBC>
While this follows the format given in the AEM3D documentation, it appears that the Fortran-based preprocessor does not accept this XML syntax as valid. We suspect the parser might not be properly handling XML tags or is looking for a different file structure internally. Could you help us with this?

1 Answer

0 votes
by [email protected] (20.7k points)
The dynamic BC file is added to your run_aem3d.dat not your run_pre.dat file.
Welcome to Hydronumerics Q&A, where you can ask questions and receive answers about the software we develop and distribute

Categories

Hydronumerics

  • Hydronumerics Pty Ltd, PO Box 103 Brunswick West Victoria 3055
  • +61 (0) 400 750 980 | +61 (0) 400 994 064
  • [email protected]
  • Twitter
...