Problem with two or more force fields in a single input script

Submitted by b.saprativ on
ckloss

Hi b.saprativ,

the second fix will delete the first one since it has the same ID - just rename the second one!

Christoph

Thu, 30 Oct 2014 - 14:45 Permalink
b.saprativ

Thanks but problem still prevails

I changed the region ID as below

#zone 1
region spray1 block -0.0295 0.0555 0.2 0.24 -0.016 0.014 units box
fix push all addforce 0.0 0.1 0.0 region spray1

I tried to add the same set of commands for the other for the other zone but its giving error

#zone 2
region spray2 block -0.01 0.05 0.3 0.4 -0.06 0.01 units box
fix push all addforce 0.0 0.1 0.0 region spray2

Still giving error. Can u please suggest if I need to make any other changes

Fri, 31 Oct 2014 - 08:07 Permalink
aaigner

Hi

Rename also the second 'addforce' fix.

E.g:
#zone 1
region spray1 block -0.0295 0.0555 0.2 0.24 -0.016 0.014 units box
fix push1 all addforce 0.0 0.1 0.0 region spray1
#zone 2
region spray2 block -0.01 0.05 0.3 0.4 -0.06 0.01 units box
fix push2 all addforce 0.0 0.1 0.0 region spray2

Best regards
Andreas

Fri, 31 Oct 2014 - 17:53 Permalink

I am trying to incorporate two separate force fields for two separate block regions in a single input script as I need to giving force in two separate regions

I am using the following script for one block

#zone 1
region spray block -0.0295 0.0555 0.2 0.24 -0.016 0.014 units box
fix push all addforce 0.0 0.1 0.0 region spray

I tried to add the same set of commands for the other for the other zone but its giving error

#zone 2
region spray block -0.01 0.05 0.3 0.4 -0.06 0.01 units box
fix push all addforce 0.0 0.1 0.0 region spray

Can anyone help me how I can add more than one force fields in a single input script