Nabla Logo user
  Advanced Search
  
  Send us a comment/query
 
  Back to main web site
 
  OpenFOAM guides
  - User guide
  - Programmer’s guide
 
  Index
 
  Changes from OpenFOAM 2.2 to 2.3
 
  Trademarks in the guides
  ©2000-2007 Nabla Ltd.

5.1 The name server and host browser


         host machine



Start nsd             IOR  in ns.ref


      MICO   name  server
\special {t4ht=
(a) Starting the nsd name server.
   host machine

               Start
               FoamXHostBrowser


 MICO  name  server
                        registers
FoamXHostBrowser
\special {t4ht=
(b) Starting the FoamXHostBrowser.

Figure 5.2: Running runFoamXHB.


To start the FoamX host browser on the host machine, the user should either run the runFoamXHB script, or, in the case that the host browser is run locally, run runFoamX which itself launches runFoamXHB. runFoamXHB performs two functions as shown in Figure 5.2.

  • The MICO name server -- a process called nsd -- is started by the host machine using the host/port address given by the org.omg.CORBA.ORBInitialHost= and org.omg.CORBA.ORBInitialPort= entries in the FoamXClient.cfg file in the user’s $OpenFOAMX_USER_CONFIG directory. The name server writes the host/port address in IOR form in the ns.ref file in the same directory.
  • The FoamXHostBrowser process is started on the host/port address where nsd was started and registers itself under the name FoamXHostBrowser.

Therefore the execution of runFoamXHB, by typing at the command prompt


    runFoamXHB
launches the name server and host browser which outputs to screen the following:


    Starting NameServer with inet:<host>:<port>...
    Starting FoamX Host Browser with inet:<host>:<port>...
where <host>:<port> are those specified in the FoamXClient.cfg file. The FoamXHostBrowser prints the Nabla Ltd. logo strip to screen and details about its execution status to indicate it is running correctly.

5.1.1 Notes for running the name server

  • The contents of the ns.ref file can be ‘translated’ and viewed by typing


        iordump < $OpenFOAMX_USER_CONFIG/ns.ref
  • An administration tool for MICO can be started by typing


        nsadmin  -ORBNamingAddr inet:<host>:<port>

    where the inet:<host>:<port> entry can be found by viewing the ns.ref file. The user should type help to view the options within the tool, which include ls to list the registered services.