Re: [Yade-users] [Question #697479]: Spheres swelling

2021-06-10 Thread Mithushan Soundaranathan
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Status: Needs information => Open

Mithushan Soundaranathan gave more information on the question:
Hi Both,

Thank you very much, the problem is that I do not how implement the
swelling model in Yade and different option I have to implement it.

I am thinking of something similar to:

def fradius(t):
   return *insert your function here(t)*

for b in O.bodies:
   if isinstance(shape, Sphere): b.shape.radius = fradius(O.time)

would be great.

Best,
Mithu

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Jan Stránský
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Status: Open => Answered

Jan Stránský proposed the following answer:
> I do not how implement the swelling model in Yade and different option
I have to implement it.

you can:
- use python and PyRunner and update particles regularly
- implement new Engine in C++
- ...

I would start with python, something like Robert's suggestion
###
O.engines = [
...
PyRunner(command="swell()",iterPeriod=1), # or iterPeriod=someOtherNumber, 
or virtPeriod instead of iterPeriod
]

def swell():
for b in O.bodies:
# test if body is sphere?
swell1(b)
def swell1(body):
rCurrent = body.state.radius
rNew = ... # eq. (9) using rCurrent
body.state.radius = rNew
# mass and inertia does change or not?
###

Cheers
Jan

-- 
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


[Yade-users] [Question #697479]: Spheres growing

2021-06-10 Thread Mithushan Soundaranathan
New question #697479 on Yade:
https://answers.launchpad.net/yade/+question/697479

Hi,

I want simulate the swelling of the particles by using Eq. 9 from this paper 
https://www.sciencedirect.com/science/article/pii/S0032591017304722#!.

How can I do it, is there any in-built function in Yade. Can I use the 
TriaxialStressController and maxmultiplier.

Best,
Mithu

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Mithushan Soundaranathan
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Summary changed to:
Spheres swelling

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Mithushan Soundaranathan
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Status: Answered => Open

Mithushan Soundaranathan is still having a problem:
The scale method, can we use different scale or does it need to be
constant?

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Robert Caulk
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Robert Caulk requested more information:
As Jan says, we really need to know what your problem is before we can
give you any real advice. In general, you could do it like this from the
yade input script:

def fradius(t):
   return *insert your function here(t)*

for b in O.bodies:
   if isinstance(shape, Sphere): b.shape.radius = fradius(O.time)

But if you need it to be a function of saturation, you could look at
PartialSatClayEngine [1]. In that engine, the swelling of particles is
an exponential function that depends on saturation level.

Another example of particle "swelling" is in ThermalEngine where it
thermally expands particles according to their temperature [2].

[1] 
https://www.yade-dem.org/doc/yade.wrapper.html#yade.wrapper.PartialSatClayEngine
[2] https://www.yade-dem.org/doc/yade.wrapper.html#yade.wrapper.ThermalEngine

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Robert Caulk
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Robert Caulk posted a new comment:
edit: the for loop on the body container would need to be put into a
PyRunner FYI.

https://www.yade-dem.org/doc/tutorial-data-
mining.html?highlight=pyrunner#pyrunner

-- 
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 #697461]: Triaxial Dense no Peak

2021-06-10 Thread Jérôme Duriez
Question #697461 on Yade changed:
https://answers.launchpad.net/yade/+question/697461

Jérôme Duriez posted a new comment:
Hi,

If I were you, I would try to get back known DEM results showing that
dense behavior [*].

By adopting the same particle size distribution (at least), and checking
whether your generation procedures enable you to get similar initial
porosities than those previous DEM simulations.

[*] https://onlinelibrary.wiley.com/doi/full/10.1002/nag.2774, Figure 3
in case you would appreciate an example. Dense-like behavior is obtained
therein, under 10 kPa confining pressure, for a 0.38 initial porosity

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Jan Stránský
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

please provide what is the problem (changing size of particles,
computing dri from eq.9, ...).

In general, you can arbitrarily modify b.shape.radius, b.state.mass,
b.state.inertia to match your needs.

There used to be a function to scale a sphere including mass (might not
be what you want), but I don't remember its name cannot find it at the
moment.

Cheers
Jan

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Jan Stránský
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Status: Open => Needs information

Jan Stránský requested more information:
> I want to change radius (dri) over time of the spheres.
> b.shape.radius=dri at different time point.

Instant replay:
please provide what is the problem.

> The scale method, can we use different scale or does it need to be
constant?

Please provide some context

Cheers
Jan

-- 
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 #697479]: Spheres swelling

2021-06-10 Thread Mithushan Soundaranathan
Question #697479 on Yade changed:
https://answers.launchpad.net/yade/+question/697479

Mithushan Soundaranathan posted a new comment:
Hi Jan,

I want to change radius (dri) over time of the spheres.

b.shape.radius=dri at different time point.

Best,
Mithu

-- 
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 #697433]: Instantiating a new FlowEngine after removing does not work

2021-06-10 Thread Zhicheng Gao
Question #697433 on Yade changed:
https://answers.launchpad.net/yade/+question/697433

Status: Answered => Open

Zhicheng Gao is still having a problem:
Dear Robert,

I'm doing erosion experiments, so I need to delete particles many times,
maybe 1 times, maybe more. According to your method, I need to add
1 FlowEngines. Will this cause the problem of insufficient memory

-- 
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