Re: [Yade-users] [Question #691980]: How to generate the particle-wall in the shear flow

2020-07-21 Thread Yuxuan Wen
Question #691980 on Yade changed:
https://answers.launchpad.net/yade/+question/691980

Status: Answered => Open

Yuxuan Wen is still having a problem:
Hello Jan,

I am thinking to use clump so that particles can be linked and become a
wall. Do you think this path can work?

Thank you!
Yuxuan

-- 
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 #683543]: Undrained triaxial test servo control

2020-07-21 Thread Yuxuan Wen
Question #683543 on Yade changed:
https://answers.launchpad.net/yade/+question/683543

Status: Answered => Solved

Yuxuan Wen confirmed that the question is solved:
Thank you Robert, the problem is solved!

Best Regards,
Yuxuan

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Faqih Maarif posted a new comment:
Hello Jan,

>what is "the original image"?
I forgot to say that the original image is x-ray tomography.

>what is "a .txt file"? "THE txt file?
Yes, correct,  I mean the txt file.

>what is "the YADE function"? "A Yade function?
I will explain in another question.

>uploading file is not possible here. You can either copy-paste full content or 
>(like in this case) a "representative part" of it.
Ok, I will create it to be a simple way.

> please be more specific. This is a directory full of example scripts and 
> other sub-directories full of example scripts..
I got it from:
[1] https://answers.launchpad.net/yade/+question/265744

>What do the numbers mean? Centers and diameter of spheres you want to import?
Yes, I would like to import based on the data above. I already solve the 
problem. 

Regards,
Faqih

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Faqih Maarif posted a new comment:
Dear Jerome,
Thank you very much for help.
I am already solve the problem.

Regards,
Faqih

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Faqih Maarif posted a new comment:
Dear Wang Yu,
Thank you for your answer. 

Regards,
Faqih

-- 
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 #691922]: Running thermal engine with different initial temperatures

2020-07-21 Thread Zoheir Khademian
Question #691922 on Yade changed:
https://answers.launchpad.net/yade/+question/691922

Status: Needs information => Solved

Zoheir Khademian confirmed that the question is solved:
Thank you Robert. I cleaned up the script and everything worked as
expected.

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Status: Answered => Solved

Faqih Maarif confirmed that the question is solved:
Thanks Wang Yu, that solved my question.

-- 
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 #691976]: gtsPFacet

2020-07-21 Thread Lei Hang
Question #691976 on Yade changed:
https://answers.launchpad.net/yade/+question/691976

Status: Answered => Solved

Lei Hang confirmed that the question is solved:
Thank you for your time and effort!

-- 
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 #691976]: gtsPFacet

2020-07-21 Thread Jan Stránský
Question #691976 on Yade changed:
https://answers.launchpad.net/yade/+question/691976

Status: Open => Answered

Jan Stránský proposed the following answer:
###
import gts
center = (0,0,0)
radius = 1
height = 2

# triangles as yade facets, can be anything else, e.g. custom class
facets = geom.facetCylinder(center,radius,height)

# yade facet to gts.Face
def f2f(f): 
p = f.state.pos
o = f.state.ori
vs = [p+o*v for v in f.shape.vertices] # vertices in global coordinates
vs = [gts.Vertex(v[0],v[1],v[2]) for v in vs] # Vector3 -> gts.Vertex
es = [gts.Edge(v,vs[(i+1)%3]) for i,v in enumerate(vs)] # gts edges
f = gts.Face(*es) # gts Face
return f
faces = [f2f(f) for f in facets]

# gts Surface
surf = gts.Surface()
for f in faces: # filled with faces
surf.add(f)
print(surf.is_ok(),surf.is_closed(),surf.is_orientable())
surf.cleanup(1e-6) # needs cleanup to merge "almost same vertices"
print(surf.is_ok(),surf.is_closed(),surf.is_orientable())

# save
with open("cyl.gts","w") as f:
surf.write(f)
###

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 #691976]: gtsPFacet

2020-07-21 Thread Lei Hang
Question #691976 on Yade changed:
https://answers.launchpad.net/yade/+question/691976

Status: Answered => Open

Lei Hang is still having a problem:
 I am so sorry, Jan. I don't fully understand these methods you taught me.
Could you show me an example to create a cylinder gts file by the two steps as 
you taught me?
First step: Getting the vertices and triangles through this method 
(programatically "by hand", e.g. cylinder should be ok to triangulate 
"manually")
Second step: Creating the cylinder gts file "by hand" or "programatically by 
yourself"

I will simulate your process and further understand it.

Very grateful to you!

-- 
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 #691645]: Different stress values from different Yade versions when running PeriodicFlowEngine

2020-07-21 Thread Robert Caulk
Question #691645 on Yade changed:
https://answers.launchpad.net/yade/+question/691645

Status: Expired => Answered

Robert Caulk changed the question status:
Changing to answered to avoid the automatic launchpad janitor cleanup.

-- 
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 #691645]: Different stress values from different Yade versions when running PeriodicFlowEngine

2020-07-21 Thread Launchpad Janitor
Question #691645 on Yade changed:
https://answers.launchpad.net/yade/+question/691645

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Jérôme Duriez
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Jérôme Duriez posted a new comment:
About https://github.com/yade/trunk/tree/master/examples, this is
because YADE source is no longer on github.com but now on gitlab.com =>
see https://gitlab.com/yade-dev/trunk/-/tree/master/examples

If you would be kind enough to tell us from where you stumbled upon this
URL, maybe we could correct these wrong tracks ;-)

-- 
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 #691922]: Running thermal engine with different initial temperatures

2020-07-21 Thread Robert Caulk
Question #691922 on Yade changed:
https://answers.launchpad.net/yade/+question/691922

Robert Caulk requested more information:
And why did you add dynamics?

If you are focused on a single problem, such as how to add a gradient of
temperature across the specimen. It is best to make only changes
relative to that first, then start adding your other desired
modifications.

-- 
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 #691922]: Running thermal engine with different initial temperatures

2020-07-21 Thread Robert Caulk
Question #691922 on Yade changed:
https://answers.launchpad.net/yade/+question/691922

Status: Open => Needs information

Robert Caulk requested more information:
Why did you remove the walls?

Why did you add gravity?

Have you checked to see if your particles are still touching despite
these two changes?

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Jan Stránský
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Jan Stránský requested more information:
Hello,

please consider that we have no knowledge of what you are doing..

> First, I tried modeling from the original image (using AutoCAD).

what is "the original image"?

> I export points from AutoCAD to a .txt file.

what are "points"?

> I want to convert from a .txt file using the YADE function to create a
concrete cube-specimen(100x100mm).

what is "a .txt file"? "THE txt file?
what is "the YADE function"? "A Yade function?

> Is it possible?

most likely yes, just please describe your problem such that it is clear
what should be possible..

> Sorry for the unclear question before

sorry, but you did not improve it much..

> I do not know to upload .txt files here

uploading file is not possible here. You can either copy-paste full
content or (like in this case) a "representative part" of it

> This is a code that I can't open.
> [1] https://github.com/yade/trunk/tree/master/examples

please be more specific. This is a directory full of example scripts and
other sub-directories full of example scripts..

> Area Center X Center Y Center Z Diameter
> 0. 113.4991 44.0120 0. 0.0009

What do the numbers mean? centers and diameter of spheres you want to
import?

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 #691986]: Import txt format to YADE

2020-07-21 Thread Wang Yu
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Wang Yu proposed the following answer:
Hello,
In my recent simulation I used 
ymport.textExt('xxx.txt',format='x_y_z_r_attrs',attrs=attrs) to import 
particles information successfully. To do that, your 'file.txt' should follow 
the format(x_y_z_r_attrs). 

For more detailed information you can read the 'ymport' section of the
documentation.

I hope that helps.

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Faqih Maarif posted a new comment:
Dear Jerome,

Thank you very much for your answer. 
I will try to do it. 

The link as written :
[1] https://github.com/yade/trunk/tree/master/examples

Best Regards,
Faqih

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Faqih Maarif posted a new comment:
Dear Jan,
Thank you for your answer,

First, I tried modeling from the original image (using AutoCAD).
Besides, I export points from AutoCAD to a .txt file. I want to convert
from a .txt file using the YADE function to create a concrete cube-
specimen(100x100mm). Is it possible?

Sorry for the unclear question before, I mean "converting" is the YADE function.
I do not know to upload .txt files here, the sample files as written below.

This is a code that I can't open.
[1] https://github.com/yade/trunk/tree/master/examples

Regards,
Faqih
---
AreaCenter XCenter YCenter ZDiameter
0.  113.499144.0120 0. 0.0009
0.  113.527644.0125 0. 0.0010
0.  113.377244.0157 0. 0.0010   
--

-- 
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 #691976]: gtsPFacet

2020-07-21 Thread Jan Stránský
Question #691976 on Yade changed:
https://answers.launchpad.net/yade/+question/691976

Status: Open => Answered

Jan Stránský proposed the following answer:
1)
of course there are rules :-)
specifically for faces (where is your problem), the numbers are indices of 
edges, in counter-clockwise order (seen from the resulting normal direction).
In your case, your first face is
> 1 2 5
your 1st, 2nd and 5th edges are
> 1 2
> 1 3
> 2 4
I.e. you tell gts to create triangle from vertices number 1, 2, 3 and 4, which 
is the problem.

2)
there are plenty of options.

First, you need the vertices and triangles:
- "by hand" (like the simple example)
- programatically "by hand", e.g. cylinder should be ok to triangulate 
"manually"
- using some external meshing software
- from existing file (e.g. from STL file format you can convert to GTS using 
stl2gts utility from libgts-bin Ubuntu package)

Once having the data, you can:
- create the gts file "by hand"
- create the file programatically by yourself
- create the gts structure using gts.Vertex, gts.Edge, gts.Surface and finally 
gts.Surface.write method [3]
- save it to another format and convert it to gts (e.g. stl2gts)

cheers
Jan

[3] https://woodem.org/woo.gts.html

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Jérôme Duriez
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Status: Needs information => Answered

Jérôme Duriez proposed the following answer:
This [*] function reads some text file to create spherical bodies. If
this is not the kind of text import you would like, please clarify (much
-- which link ?) your question.

Note also that YADE is Python and, as such, all Python manipulation of
text files are possible, eg [**].

[*] https://yade-dem.org/doc/yade.ymport.html#yade.ymport.text
[**] 
https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files

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 #691986]: Import txt format to YADE

2020-07-21 Thread Jan Stránský
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Status: Open => Needs information

Jan Stránský requested more information:
Hello,

> converting to the txt format.

what is "txt format"? Do you have a short example / snippet?
What does "converting" mean (using some yade function? which? using your 
function?...?)?

> I was read from YADE FAQs related with this topic, but the link cannot
open.

please provide the link to the FAQs and/or the link unable to open

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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
Question #691986 on Yade changed:
https://answers.launchpad.net/yade/+question/691986

Description changed to:
Dear All,

I have created a 2D-mesoscale model in concrete (aggregate, cement, void) and 
converting to the txt format. My question is how to import txt format to YADE?.
I was read from YADE FAQs related with this topic, but the link cannot open.

Could anyone give me some advice? 
Thankyou

Regards,
Faqih

-- 
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 #691986]: Import txt format to YADE

2020-07-21 Thread Faqih Maarif
New question #691986 on Yade:
https://answers.launchpad.net/yade/+question/691986

Dear All,

I have created a 2D-mesoscale model in concrete (aggregate, cement, void) and 
converting to the txt format. My question is how to import txt format to YADE?.
I was read from YADE FAQs related with this topic, but the link was given 
cannot open.

Could anyone give me some advice? 
Thankyou

Regards,
Faqih

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