how to get data.cnt

Dear all,
I have just read the perl code (cnt.perl.txt) used to generate CNT and water structure.
Could you please tell me how to compile perl code to create data.cnt file which is used in the in.cnt input file.
Sorry, because of stupid requirement but I’m beginner in this field
Thanks so much and have a nice weekend!
Best regards,
Ha

Dear all,
I have just read the perl code (cnt.perl.txt) used to generate CNT and water
structure.
Could you please tell me how to compile perl code to create data.cnt file
which is used in the in.cnt input file.

perl code doesn't need to be compiled.
there is no in.cnt file in the lammps distribution,
so i cannot comment on that.

there are other ways to generate carbon nanotube
structure and merging structure and generated data files.

Sorry, because of stupid requirement but I'm beginner in this field

i strongly recommend to thoroughly search through
the mailing list archives and read and re-read the
LAMMPS documentation. similar problems were
discussed and answered by people multiple times
and thus there should be a lot of useful information
in the mailing list archives.

axel.

I assume you're referring to the perl code included in the user script
I posted on capillary filling of a CNT with water. I received a *very*
similar question, sent by a different person, a few days ago. Here is
a copy of the question and answer:

Dear Joly,
I have just read your input (in.cnt) and perl code (cnt.perl.txt) to create
CNT and water structure.
Firstly, thanks for your post. For my research, it's really helpful.
Secondly,could you please tell me how to compile perl code and run it.
Sorry because of stupid requirement but I'm beginner in this field
Thanks so much and have a nice weekend!

For lammps related questions, me and others will be happy to help if
you post to the lammps mailing list. But if you want to learn perl,
you'd better find a local expert, or, for simple questions like this,
search the Internet. To execute the perl script, simply type 'perl
cnt.perl.txt' in the command line.

2012/6/10 nguyen hoang ha <[email protected]...>: