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

You are not logged in.

#1 2019-05-07 09:53:40

nirmaljoshi
Member
From: Japan
Registered: 2018-10-12
Posts: 152

evolving temperature linearly in a mechanical analysis

Hi,
In one analysis, I want to set the initial temperature of a steel rod as follows
at time (t)=0, temperature =0 C
t=1 to 50, temperature =1 to 50 C varying linearly

I used a function fTemp to set vale_f in CREA_RESU and applied it to the material property. But it gives error. What am i doing wrong?  But when I use single temperature by setting Value (e.g. value=50), the analysis runs fine.

Please help.
===========
Error message
   !  Error user (CREA_CHAMP/AFFE):                                          !
   !  The type of the field which one seeks to create (real, whole, complex, !
   ! function)                                                               !
   !  is not                                                                 !
   ! compatible with the key word used (VALE, VALE_I, VALE_C, VALE_F).

========


Attachments:
study.zip, Size: 91.64 KiB, Downloads: 60

Offline

#2 2019-05-07 11:13:06

OEngDud
Member
Registered: 2017-06-29
Posts: 8

Re: evolving temperature linearly in a mechanical analysis

Hello nirmaljoshi,

you have to change in tem100 TYPE_CHAM from 'NOEU_TEMP_R' to 'NOEU_TEMP_F'. The F stands for function.

Best regards,

Olka

Offline

#3 2019-05-08 15:12:14

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,622

Re: evolving temperature linearly in a mechanical analysis

hello

why trying to make things complicated when they are simple

attached is a modified .comm file that may do what you want

jean pierre aubry


Attachments:
Stage_1.comm, Size: 3.58 KiB, Downloads: 63

consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/

Offline