LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
Re: [lammps-users] Python and animations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lammps-users] Python and animations


From: Gideon Simpson <gideon.simpson@...24...>
Date: Fri, 13 Oct 2017 09:02:51 -0700

Ugh, I hate to be *that* guy, but now it’s working fine on my Mac.  I think the issue is that I was trying to save as .mp4 and did not have that codec on my Mac.

-gideon

On Oct 13, 2017, at 6:46 AM, Richard Berger <richard.berger@...1545...> wrote:

Just to get the obvious out of the way:

You do know that the dump command alone won’t do anything? You need to run the simulation and then you should have a movie file that got generated during that run. That file can then be embedded in a IPython notebook.

Did you compile the shared library with -DLAMMPS_FFMPEG?

Where does it fail in IPython? In the dump command, the run, or does the output *after* the run simply not exist?

Richard

On Thu, Oct 12, 2017 at 23:47 Gideon Simpson <gideon.simpson@...24...> wrote:
Yes, I see the same output as if I were to run ffmpeg -h in the terminal.

-gideon

On Oct 12, 2017, at 11:01 AM, Richard Berger <richard.berger@...12...1545...> wrote:

Try running this in IPython and tell me if you get a valid output or a command not found:

import subprocess
subprocess.check_output("ffmpeg -h", shell=True)

Richard

On Thu, Oct 12, 2017 at 11:24 AM, Gideon Simpson <gideon.simpson@...24...> wrote:
ffmpeg is installed on the Mac, and if I run a standard (i..e, non-python) lammps script with the dump movie command, it works as expected.

-gideon

On Oct 12, 2017, at 6:38 AM, Richard Berger <richard.berger@...1250...545...> wrote:

 
dump movie requires ffmpeg. That isn’t IPyLammps specific, but is always the case. Is it installed on the mac? If so maybe its PATH is somehow messed up. Otherwise I’d have to see the scripts.

PS: I’m the author of both PyLammps and IPyLammps. IPyLammps just adds a few utilities for IPython notebooks. In this case allowing to embed a generated video.

Richard

On Thu, Oct 12, 2017 at 09:24 Steve Plimpton <sjplimp@...24...> wrote:
CCing Richard,  IPyLAMMPS is not part
of LAMMPS, right?  Is there an author you can
ask these Qs to directly?

Steve

On Wed, Oct 4, 2017 at 6:14 PM, Gideon Simpson <gideon.simpson@...36.....24...> wrote:
I’m finding that on one of my machines (a Mac), I can’t dump my output to a movie from a IPyLammps script with the command:

L.dump("3 all movie 100 anim.mpeg type type adiam 1.0")

The same script, run on a linux machine, has no problem.  There is also no problem on the Mac if I run this as a standard script with the command line.  Any suggestions on how to troubleshoot/resolve  this?

-gideon


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
lammps-users mailing list
lammps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lammps-users

--
Dr. Richard Berger  richard.berger@...12...1545...      Office: SERC 701F
Research Assistant Professor, Dept. of Mathematics, College of Science and Technology
Temple University, Philadelphia PA 19122




--
Dr. Richard Berger  richard.berger@...1545...      Office: SERC 701F
Research Assistant Professor, Dept. of Mathematics, College of Science and Technology
Temple University, Philadelphia PA 19122

--
Dr. Richard Berger  richard.berger@...1545...      Office: SERC 701F
Research Assistant Professor, Dept. of Mathematics, College of Science and Technology
Temple University, Philadelphia PA 19122