SampleCapillaryPressureEngine

Asked by Latifa El Ghezal on 2011-03-07

Hello,

I generated an xml file with CapillaryTriaxialTest. And aiming to assign a pressure variation, I added the sample capillary pressure engine, and a segmentation fault was generated. What should I do to be able to use the SampleCapillaryPressureEngines ?

Best regards,
Latifa El Ghezal

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
2011-03-07
Last query:
2011-03-07
Last reply:
2011-03-07

Hi. I don't know what the problem can be. I'd suggest to not use this engine and simply modify the pressure with python, it will be more versatile:
O.engines[6].CapillaryPressure=something #[6] is assuming the simulation is generated with the preprocessor

Jérôme Duriez (jduriez) said : #2

Hello,

When you say :

"I generated an xml file with CapillaryTriaxialTest...I added the sample capillary pressure engine, and a segmentation fault was generated"

Do you mean that you modified by hand the xml which was generated (to add the engine you want), and then reloaded it ? And then you got this crash ?

PS : to quote question in answers, mails to yade users were more practical ;-) !

Anton Gladky (gladky-anton) said : #3

Could you no, please, repeat it with debug-version of Yade to get more
informatiion about the crash?

Anton

On Mon, Mar 7, 2011 at 2:36 PM, Latifa El Ghezal
<email address hidden> wrote:
> New question #148162 on Yade:
> https://answers.launchpad.net/yade/+question/148162
>
> Hello,
>
> I generated an xml file with CapillaryTriaxialTest. And aiming to assign a pressure variation, I added the sample capillary pressure engine, and a segmentation fault was generated. What should I do to be able to use the SampleCapillaryPressureEngines ?
>
> Best regards,
> Latifa El Ghezal
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

No need to debug, I think I'll remove this engine. It's only inheriting from StressControler and doing some trivial operations on a few parameters of the capillary law.
It can't be added in a simulation (be it manualy in xml or with python) since it needs a law pointer. Only preprocessors can instantiate it correctly.

Hello jduriez

In fact, this is what I did.

Thanks Chareyre, that solved my question.