Re: [Yade-users] [Question #662791]: Problems compiling loki from sources

2018-01-25 Thread Victor Eijkhout
Question #662791 on Yade changed:
https://answers.launchpad.net/yade/+question/662791

Status: Open => Solved

Victor Eijkhout confirmed that the question is solved:
Ok, it seems like I can compile Loki by pretending the last 20 years of
C++ development never happened. In other words: compile with std=c++98.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #663459]: Periodic flow: impose gradP such that Paverage!=0

2018-01-25 Thread Luc Scholtès
Question #663459 on Yade changed:
https://answers.launchpad.net/yade/+question/663459

Status: Answered => Solved

Luc Scholtès confirmed that the question is solved:
Thank you guys. I guess I need some time to process this with respect to
what I want to achieve.

Just a final comment:

If I can simulate separately:

1) an increase of pressure P in the cell (homogenized pressurization of
the medium)

2) an increase of pressure gradient gradP  along one direction of the
cell (flow along a given direction)

and if, by combining the "commands" defining 1) and 2) I happen to
obtain a result that seems to make sense in terms of overall response
(i.e. cumulative effect of 1) and 2) in effective stress and associated
deformation), would that be mechanically/physically correct of is it
just wrong because "a problem that would depend both on pressure
gradient and pressure average could not be simulated using periodic
boundaries"?

Cheers

Luc

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #663532]: insert flowengine as a partial/global engine??

2018-01-25 Thread Bruno Chareyre
Question #663532 on Yade changed:
https://answers.launchpad.net/yade/+question/663532

Status: Open => Answered

Bruno Chareyre proposed the following answer:
Hi,
Q1) It could probably have been a global engine. It is inconsequential to, 
besides the fact that it made it tempting for you to play with ids.
Q2) If you check an example script you'll see that the list of ids is never 
defined, it will automatically get all spheres in that case.
Bruno

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #663459]: Periodic flow: impose gradP such that Paverage!=0

2018-01-25 Thread Bruno Chareyre
Question #663459 on Yade changed:
https://answers.launchpad.net/yade/+question/663459

Bruno Chareyre proposed the following answer:
> "a problem that would depend both on pressure gradient and pressure
average could not be simulated using periodic boundaries, since such a
problem would not show a periodic pattern from one cell (or window) to
another."

That's absolutely correct.

> "-P -- 0 -- +P / -P -- 0 -- +P / -P -- 0 -- +P"

The pressure drop per period (i.e. the macroscopic pressure gradient gradP) can 
be calculated by taking any two points  separated by a distance k*L, with L the 
period length.
E.g. starting from the first point in your sequence and going forward by L:
> "-P -- 0 -- +P / -P"

gradP = -P - (-P) / L = 0

More generally a periodic flow problem necessarily leads to P(x)=a*x + p(x), 
where a is the macroscopic gradient and p(x) is a periodic fluctuation, so that 
grap(P)=dP/dx=a+dp/dx is a truly periodic function (and velocity as well since 
v=-k(grad(P)). 
 
 Cheers 
Bruno

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #663441]: some modules fail to be loaded when i call a class from a python file

2018-01-25 Thread JOHN
Question #663441 on Yade changed:
https://answers.launchpad.net/yade/+question/663441

Description changed to:
Good evening,
I have the following problem

I have a python script that calls yade functions from another file.

When the other file just has the functions defined as functions (def
etc) everything runs correctly

When i wrap the functions in a class i can run the yade engine and some 
packings, but for example 
pred = inGtsSurface(s)  this line cases the error message

NameError: global name 'inGtsSurface' is not defined
And some more seemingly random functionalities fail. 
Any ideas/tests you want me to run
Will be more than welcome

Thanks!
John

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #663500]: densest packing possible

2018-01-25 Thread george
Question #663500 on Yade changed:
https://answers.launchpad.net/yade/+question/663500

Status: Answered => Solved

george confirmed that the question is solved:
Thank you!!
Amazing community

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #663459]: Periodic flow: impose gradP such that Paverage!=0

2018-01-25 Thread Jérôme Duriez
Question #663459 on Yade changed:
https://answers.launchpad.net/yade/+question/663459

Status: Open => Answered

Jérôme Duriez proposed the following answer:
>From my understanding, I would more consider the pressure field along
the infinite problem being something like

-infinity -- -infinity + gradP*L -- -infinity + gradP*2L / -infinity +
gradP*2L -- -infinity + gradP*3L -- -infinity + gradP*4L / . /
-gradP*L -- 0 -- +gradP*L /  / infinity -gradP*2L -- infinity -
gradP*L -- infinity

(from the "left" of the infinite problem, to the "right"...)


In your examples #2 or #3 I think you describe pressure discontinuity, with the 
different values across the cell edges (the "/"). Which is maybe not the way to 
go ?..

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp