Menu

talys_to_webnucleo

Bradley S. Meyer

talys_to_webnucleo

This project allows users to convert reaction rate data computed with the Talys nuclear reaction code to a form appropriate for use in NucNet Tools and NucNet Projects applications.

Installing the project.

If you have not previously done so, install the necessary [libraries]. Next, if you have not previously done so, create a projects directory:

** mkdir projects **

Change into the projects directory:

** cd projects **

Now you can checkout the project:

** svn checkout svn://svn.code.sf.net/p/nucnet-projects/code/trunk/projects/talys_to_webnucleo**

Compiling the executables.

Change into the project directory:

** cd talys_to_webnucleo **

and compile the codes:

** ./project_make **

The project compiled successfully if you see Make succeeded. Otherwise, please submit a Ticket or make a post to the Discussion board (see links above).

Converting individual reaction data.

It is possible to convert individual Talys-created reaction data to appropriate webnucleo XML format. To obtain example data, type

** make talys_to_webnucleo_data**

Now convert the data. To get the command to run, type

./reaction_converter

to get a usage statement. To get an example, type

** ./reaction_converter --example **

which will return the line

./reaction_converter ../nucnet-tools-code/data_pub/talys_to_webnucleo/os187/os187na os187na.xml

Here ../nucnet-tools-code/data_pub/talys_to_webnucleo/os187/os187na is the input data file downloaded above (and originally created with Talys) and os187na.xml is the output file. Execute the above command to produce os187na.xml.

To check the output, use libnucnet example codes. To do this, first ensure that you have those codes available by typing

cd ../nucnet-tools-code/build

make -f Makefile.libnucnet all_libnucnet

cd ../../talys_to_webnucleo

(If the make command does not succeed, your libnucnet or other webnucleo module distribution may be out of date. In this case, be sure that you ran ./project_make, as described above, and then type make -f Makefile.libnucnet clean before trying to make all_libnucnet again.)

Now print out the reaction data by typing

../nucnet-tools-code/libnucnet/print_reactions os187na.xml

You can also use other libnucnet reaction codes on this file. For example, to print out the rate at T9 = 2.3, type

../nucnet-tools-code/libnucnet/print_rates_at_t9 os187na.xml 2.3

Converting a directory of reaction data.

It is possible to convert a directory of individual Talys-created reaction data to appropriate webnucleo XML format. To see the command to convert the example data downloaded as above, type

./create_reaction_xml.sh

to get a usage statement. To get an example, type

** ./create_reaction_xml.sh --example **

which will return the line

./create_reaction_xml.sh ../nucnet-tools-code/data_pub/talys_to_webnucleo/os187 xml reactions.xml

Here ../nucnet-tools-code/data_pub/talys_to_webnucleo/os187 is the input directory with data files downloaded above (and originally created with Talys), xml is the output directory, and reactions.xml is the output file in xml that uses XInclude to combine the data from the individual XML files. Execute the above command to produce xml and reactions.xml. Note that individual reaction XML files are created in xml with .xml appended to their names in the input directory.

To check the output, use libnucnet example codes, as compiled above. Print out the reaction data by typing

../nucnet-tools-code/libnucnet/print_reactions xml/reactions.xml

You can also print out the data for the individual reactions. For example, type

../nucnet-tools-code/libnucnet/print_reactions xml/os187na.xml


Related

Wiki: Home
Wiki: libraries

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.