I have two more comments:
1) Try using the version of the "new random" command described in
section 7.9.1 of the moltemplate manual (p.39). An example of how to
do this is shown below. (If you do it the other way, then the number
of objects of each type (Graphene" and "Epoxide" in your example) will
vary depending on the random seed you used in the "new random" command
("123456" in your example).)
2) In the "mixture.lt" file you posted, you defined a "Sheet" object:
Sheet inherits ForceField {
cells = new random([Graphene, Epoxide], [7, 2], 123456)
[3].move(2.4595121467478, 0, 0)
[3].move(1.2297560733739, 2.13, 0)
}
Keep in mind that once you define your small 3x3 "Sheet" object (or
any moltemplate object, for that matter), his definition is written in
stone. If you are planning to make multiple copies of this "Sheet"
object later on, then keep in mind that they will all identical. For
example if you use:
sheets = new Sheet
[4].move(7.3785,0,0)
[4].move(3.68927,6.39,0)
... then each of the 16 (4x4) "Sheet"s in the system will be
identical. (The 3x3 pattern in each Sheet will be the same.)
Presumably, this is not what you want. Presumably you want the
contents of all of the sheets to be random:
If you want to make a large sheet (for example 12x12), then I would
put the entire thing within a single "new random" command:
cells = new random([Graphene, Epoxide], [115, 29], 123456)
[12].move(2.4595121467478, 0, 0)
[12].move(1.2297560733739, 2.13, 0)
I've attached a copy of your "mixture.lt" file with these changes.
On Tue, Mar 12, 2019 at 3:46 PM اسحاق خداپرست سیاهمزگی
> then I tried to run moltemplate example(the third example :https://www.moltemplate.org/visual_examples.html ) but again i faced with that error.
I was unable to reproduce this error with that example. Try compiling
the example using
moltemplate.sh system.lt
P.S. If you get this example working, I'd love to include it with moltemplate.
If you don't feel comfortable sharing that, even just a pretty picture
would be great.
Incidentally, if you haven't read the email I sent earlier in reply to
this post, read that too. (It explains how to get past the error
message that was troubling you. This email was about other issues
which may come up later.)
Cheers
Andrew
mixture.lt (273 Bytes)