Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"You can have my Unix system when you pry it from my cold, dead fingers." -- Cal Keegan


devel / comp.lang.fortran / Re: N-body simulation

SubjectAuthor
* Re: N-body simulationGiorgio Pastore
`* Re: N-body simulationL
 +- Re: N-body simulationbaf
 +- Re: N-body simulationThomas Koenig
 `- Re: N-body simulationGiorgio Pastore

1
Re: N-body simulation

<klurgqFhbgnU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3606&group=comp.lang.fortran#3606

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pastgio@units.it (Giorgio Pastore)
Newsgroups: comp.lang.fortran
Subject: Re: N-body simulation
Date: Thu, 7 Sep 2023 22:52:42 +0200
Lines: 4
Message-ID: <klurgqFhbgnU1@mid.individual.net>
References: <0fe81356-8d25-4d2d-9aca-6c9bde457bc7n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 2u/H0tURgwgN89BuH4VdFwofKO3l96/MTw/Jh33KJgKawsSHIw
Cancel-Lock: sha1:T/3N5oA/8bis4MRArGyxFqb5Pp0= sha256:9OW1435lF/JlLk8Kpsamypoe4hHYC1kWmQh1QPI84BI=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.15.0
Content-Language: it
In-Reply-To: <0fe81356-8d25-4d2d-9aca-6c9bde457bc7n@googlegroups.com>
 by: Giorgio Pastore - Thu, 7 Sep 2023 20:52 UTC

Il 07/09/23 22:10, L ha scritto:
> Does anyone know a good graphics program that would be able to plot N-body interactions? I know of gnu plot but I don't see any examples of what I'm looking for.

What does it mean "to plot N-body interactions"?

Re: N-body simulation

<c7b24863-7afa-42f8-b86e-818f992e12a1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3610&group=comp.lang.fortran#3610

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:15d6:b0:412:2493:d7fb with SMTP id d22-20020a05622a15d600b004122493d7fbmr51189qty.0.1694189304500;
Fri, 08 Sep 2023 09:08:24 -0700 (PDT)
X-Received: by 2002:a05:622a:1917:b0:400:7bc7:655d with SMTP id
w23-20020a05622a191700b004007bc7655dmr69077qtc.6.1694189304148; Fri, 08 Sep
2023 09:08:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 8 Sep 2023 09:08:23 -0700 (PDT)
In-Reply-To: <klurgqFhbgnU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=216.165.95.189; posting-account=q_i8VAoAAAAakBos59coFiWwgh3j8-5t
NNTP-Posting-Host: 216.165.95.189
References: <0fe81356-8d25-4d2d-9aca-6c9bde457bc7n@googlegroups.com> <klurgqFhbgnU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c7b24863-7afa-42f8-b86e-818f992e12a1n@googlegroups.com>
Subject: Re: N-body simulation
From: lemmiegabe@gmail.com (L)
Injection-Date: Fri, 08 Sep 2023 16:08:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: L - Fri, 8 Sep 2023 16:08 UTC

On Thursday, September 7, 2023 at 4:52:48 PM UTC-4, Giorgio Pastore wrote:
> Il 07/09/23 22:10, L ha scritto:
> > Does anyone know a good graphics program that would be able to plot N-body interactions? I know of gnu plot but I don't see any examples of what I'm looking for.
> What does it mean "to plot N-body interactions"?
To have N body interactions in this case means to have a 1/x potential. You can also prove this if your potential is x^2 where your eq of motion looks like a = -Kx. a is acceleration, K is a constant and x is position. In this case, I mean plot about 10,000 stars on screen. N just a large number of interactions.

Re: N-body simulation

<km1cffFtft4U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3611&group=comp.lang.fortran#3611

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: baf@nowhere.com (baf)
Newsgroups: comp.lang.fortran
Subject: Re: N-body simulation
Date: Fri, 8 Sep 2023 12:54:23 -0700
Lines: 9
Message-ID: <km1cffFtft4U1@mid.individual.net>
References: <0fe81356-8d25-4d2d-9aca-6c9bde457bc7n@googlegroups.com>
<klurgqFhbgnU1@mid.individual.net>
<c7b24863-7afa-42f8-b86e-818f992e12a1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net IkQ4AgeSF0kKre+7+x92EwSi3lNSyHIKq4augxiIuuca82n9Va
Cancel-Lock: sha1:1IpTG4QfMf4MgvkPSebWzLZ8PvA= sha256:9Xi6gm8q+BUvx/dRFFxrSLJchxRcl2cSerOt2WNrfjg=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.0
Content-Language: en-US
In-Reply-To: <c7b24863-7afa-42f8-b86e-818f992e12a1n@googlegroups.com>
 by: baf - Fri, 8 Sep 2023 19:54 UTC

On 9/8/2023 9:08 AM, L wrote:
> On Thursday, September 7, 2023 at 4:52:48 PM UTC-4, Giorgio Pastore wrote:
>> Il 07/09/23 22:10, L ha scritto:
>>> Does anyone know a good graphics program that would be able to plot N-body interactions? I know of gnu plot but I don't see any examples of what I'm looking for.
>> What does it mean "to plot N-body interactions"?
> To have N body interactions in this case means to have a 1/x potential. You can also prove this if your potential is x^2 where your eq of motion looks like a = -Kx. a is acceleration, K is a constant and x is position. In this case, I mean plot about 10,000 stars on screen. N just a large number of interactions.

Try dislin (www.dislin.de)

Re: N-body simulation

<udg3qo$3m19k$1@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3612&group=comp.lang.fortran#3612

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-f292-0-9c88-a9f1-da7e-284a.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: N-body simulation
Date: Fri, 8 Sep 2023 21:31:04 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <udg3qo$3m19k$1@newsreader4.netcologne.de>
References: <0fe81356-8d25-4d2d-9aca-6c9bde457bc7n@googlegroups.com>
<klurgqFhbgnU1@mid.individual.net>
<c7b24863-7afa-42f8-b86e-818f992e12a1n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 8 Sep 2023 21:31:04 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-f292-0-9c88-a9f1-da7e-284a.ipv6dyn.netcologne.de:2001:4dd7:f292:0:9c88:a9f1:da7e:284a";
logging-data="3867956"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Fri, 8 Sep 2023 21:31 UTC

L <lemmiegabe@gmail.com> schrieb:
> On Thursday, September 7, 2023 at 4:52:48 PM UTC-4, Giorgio Pastore wrote:
>> Il 07/09/23 22:10, L ha scritto:
>> > Does anyone know a good graphics program that would be able
>> > to plot N-body interactions? I know of gnu plot but I don't see
>> > any examples of what I'm looking for.

>> What does it mean "to plot N-body interactions"?
> To have N body interactions in this case means to have a 1/x
> potential. You can also prove this if your potential is x^2 where
> your eq of motion looks like a = -Kx. a is acceleration, K is a
> constant and x is position. In this case, I mean plot about 10,000
> stars on screen. N just a large number of interactions.

If you just want to plot the positions, that should not be a
problem - just write out the positions into a data file and plot
them (gnuplot can also do 3D, and you can then turn the
plot).

Or what is it that you want, exactly?

Re: N-body simulation

<km3mnjF9a2uU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=3613&group=comp.lang.fortran#3613

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pastgio@units.it (Giorgio Pastore)
Newsgroups: comp.lang.fortran
Subject: Re: N-body simulation
Date: Sat, 9 Sep 2023 19:01:39 +0200
Lines: 26
Message-ID: <km3mnjF9a2uU2@mid.individual.net>
References: <0fe81356-8d25-4d2d-9aca-6c9bde457bc7n@googlegroups.com>
<klurgqFhbgnU1@mid.individual.net>
<c7b24863-7afa-42f8-b86e-818f992e12a1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 1GaBzxtcjAog4+9lDSidhAyzzJsNppcYAAos8e+L0drmmqsGWZ
Cancel-Lock: sha1:9Yw2uVHzdh8tkEBnSbtgefiI/bU= sha256:m8ayiNlJbsGCDvmEJN9fM7n6jrTBuyrAAvB4/O2ZtC0=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.15.0
Content-Language: it
In-Reply-To: <c7b24863-7afa-42f8-b86e-818f992e12a1n@googlegroups.com>
 by: Giorgio Pastore - Sat, 9 Sep 2023 17:01 UTC

Il 08/09/23 18:08, L ha scritto:
> On Thursday, September 7, 2023 at 4:52:48 PM UTC-4, Giorgio Pastore wrote:
>> Il 07/09/23 22:10, L ha scritto:
>>> Does anyone know a good graphics program that would be able to plot N-body interactions? I know of gnu plot but I don't see any examples of what I'm looking for.
>> What does it mean "to plot N-body interactions"?
> To have N body interactions in this case means to have a 1/x potential. You can also prove this if your potential is x^2 where your eq of motion looks like a = -Kx. a is acceleration, K is a constant and x is position. In this case, I mean plot about 10,000 stars on screen. N just a large number of interactions.

The examples you are citing correspond to what, as a physicist, I would
call "interaction between N bodies through pair-wise potntials". A true
N-bodi interaction is a function U(i_1,r_2,r_3,...,r_N) not reducible to
a sum of few-body contributions.

Nevertheless, even if you are dealing with an interacion energy of the form
U = (1/2) sum_{i/=j} u(|r_i-r_j|)

as far as I can understand you are not interested in plotting the
interaction but the positions of the N bodies. Isn't it?

In such a case, I would suggest using programs designed to plot atomic
positions. For example you may consider using jmol
(https://jmol.sourceforge.net/ ) you can eliminate the bonds and you
remain with a 3D visualization of spheres. One advantage of jmol is that
the .xyz file format is very simple. Moreover it is customizable and one
can even generate animations in a simple way.

Giorgio

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor