Defining basic information

Define basic information of a solver. Create a file with the content shown in List 1, and save it with name “definition.xml” under “example” folder that you created in Creating a folder

List 1 Example solver definition file that contains basic information
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<SolverDefinition
  name="samplesolver"
  caption="Sample Solver 1.0"
  version="1.0"
  copyright="Example Company"
  release="2012.04.01"
  homepage="http://example.com/"
  executable="solver.exe"
  iterationtype="time"
  gridtype="structured2d"
>
  <CalculationCondition>
  </CalculationCondition>
  <GridRelatedCondition>
  </GridRelatedCondition>
</SolverDefinition>

At this point, the structure of the solver definition file is as shown in Figure 2.

../_images/solverdef_structure1.png

Figure 2 Solver definition file structure

Now make sure the solver definition file is arranged correctly.

Launch iRIC. The [iRIC Start Page] dialog ( Figure 3 ) is shown, so please click on [New Project]. The [Solver Select] dialog (Figure 4 ) will open, so make sure if there is a new item “Sample Solver” in the solver list. When you find it, select it and make sure that the basic information of the solver you wrote in solver definition file is shown.

Please note that the following attributes are not shown on this dialog:

  • name
  • executable
  • iterationtype
  • gridtype
../_images/iric_start_dialog.png

Figure 3 The [iRIC Start Page] dialog

../_images/solver_select_dialog.png

Figure 4 The [Select Solver] dialog

You sould take care about name attribute and version attribute, when you want to update a solver. Please refer to Notes on solver version up for the detail.