src/OpenFOAM logo
The Open Source CFD Toolbox
  Search
  
  Back to OpenFOAM Home
 
  OpenCFD
  Company profile
  OpenFOAM support
  OpenFOAM development
  OpenFOAM training
  Solutions
  Contact OpenCFD
  Recruitment
  Recommended links
 
  OpenFOAM
  Features
  Download
  Documentation
  * User Guide
  * C++ Source Guide
  * README file
  * Release notes
  * Upgrading to 1.5
 
  © 2000-2008 OpenCFD Ltd
SourceForge.net Logo
OpenCFD Solutions Contact OpenFOAM
OpenFOAM 1.5 User Guide © 2000-2008 OpenCFD Ltd

A.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 A.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 (normal mode), run runFoamX which itself launches runFoamXHB. runFoamXHB performs two functions as shown in A.2.

  • The MICO name server -- a process called nsd -- is started by the host machine. It uses the host name and a default port address that can be set manually by the org.omg.CORBA.ORBInitialHost= and org.omg.CORBA.ORBInitialPort= entries in the FoamXClient.cfg file of the .OpenFOAM-1.5/apps/FoamX 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 set by default or are those specified in the FoamXClient.cfg file. The FoamXHostBrowser prints the OpenFOAM logo strip to screen and details about its execution status to indicate it is running correctly.

A.1.1 Notes for running the name server

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

        iordump < $FOAMX_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.