Data Archiving: experience in the Theoretical Virtual Observatory.

For archiving and publishing theoretical data it is important to create a suitable structure to store the metadata of the simulation (that must contain all the code parameters used to perform the run) and also all the physical parameters used and at the end also the metadata of the output files; so the database has to contain all the values to rebuilt the production history of a single file. The database must be a relational one in order to permit scientific query on selected parameters to obtain a restrict result. We present the work made for two kinds of astrophysical simulations: cosmological one that contain Gadget, Enzo and Fly simulations and stellar tracks and isochrones performed with the FRANEC code. These two experiences are made inside the VOTECH and VO-DCA EU funded projects.