Welcome to the forums. Please post in English or French.

You are not logged in.

## #1 2019-12-19 20:48:38

ginda
Member
Registered: 2019-10-10
Posts: 3

### [SOLVED] Simple parametric beam is Ok on CA 13.6, but not on CA 14.2+

Hi,

I am creating a parametric relatively complex model, but the tiny one attached reproduce the error I get. It is a beam with a function used to apply linear distributed load.

With Aster 13.6 the results are Ok, but with Aster 14.2+ I got an error. This situation was tested on Salome Meca 2018 installed on Arch Linux and on Aster 14.4 stand alone installed on Mint 19.3, both as virtual machines.

In the attachments there are the .comm,  .mail and .mess files. It is included both .mess files: the one obtained with 13.6 and the one obtained with 14.2.

I would appreciate if someone could direct me to clarify and solve the error.

Best Regards,
Gregorio

Last edited by ginda (2020-01-08 23:17:09)

Attachments:

Offline

## #2 2020-01-08 20:36:14

ginda
Member
Registered: 2019-10-10
Posts: 3

### Re: [SOLVED] Simple parametric beam is Ok on CA 13.6, but not on CA 14.2+

Redifining function F solve the error for Code Aster 14.2 and 14.4:

...
cA100 = [3000, 4000, 1000]
cA101 = [9000, 8000, 6000]
...
from math import sqrt
L = sqrt((cA100[0]-cA101[0])**2+(cA100[1]-cA101[1])**2+(cA100[2]-cA101[2])**2)
F=DEFI_FONCTION(
VALE=(0,0, L,L*q0,),
PROL_DROITE='LINEAIRE',
NOM_PARA='X',
);
...

But it is necessary to have the coordinates of the two nodes on .comm file which is an inconvenient and complicates definition of F when it is more elaborated.

The doubt about error is still on the air. Maybe errors related with different versions of Code Aster are more common what I know.

Regards
Gregorio

Offline

## #3 2020-01-08 21:47:34

AsterO'dactyle
Registered: 2007-11-29
Posts: 279

### Re: [SOLVED] Simple parametric beam is Ok on CA 13.6, but not on CA 14.2+

Hello

Syntax of FORMULE has been changed for the (future) full-Pythonic version of code_aster
See Documentation of FORMULE
For you, try this :

F=FORMULE(
NOM_PARA='X',
);

Code_Asterの開発者

Offline

## #4 2020-01-08 23:11:12

ginda
Member
Registered: 2019-10-10
Posts: 3

### Re: [SOLVED] Simple parametric beam is Ok on CA 13.6, but not on CA 14.2+

Thank you very much Asterodáctilo, I was not aware of the changes in FORMULE. It works on Code Aster 14.2+ now.

Regards
Gregorio

Offline