Welcome, Guest
Username: Password: Remember me

TOPIC: impose des vitesses

impose des vitesses 9 years 2 months ago #18157

  • jie
  • jie's Avatar
Hello,

I want to prescribe the velocities at the boundary. In the expression of my velocities, I need to use the COORDINATES OF POINTS IN THE 3D MESH "Z", I am not so sure how to use it. A picture is captured here, and I got the error information which I attached too.

Can somebody help me, please?

thank you a lot,
jie
Attachments:
The administrator has disabled public write access.

impose des vitesses 9 years 2 months ago #18158

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

Is this line longer than 72 character?

Regards
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: jie

impose des vitesses 9 years 2 months ago #18159

  • jie
  • jie's Avatar
No sir,
I highlight the limit line for helping me evoit this problem.
The administrator has disabled public write access.

impose des vitesses 9 years 2 months ago #18161

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
in the err.png it seems to me that the last ) is in column 73 (count the - just under)
Maybe you could just erase few space to check

Regards
Christophe
The administrator has disabled public write access.

impose des vitesses 9 years 2 months ago #18160

  • jie
  • jie's Avatar
ha,
I found something, I change the 'COSH' and 'SINH' by 'COS', 'SIN', that works, but what I need is 'COSH' and 'SINH', and I use intrinsic at the head of my file. attached below
Attachments:
The administrator has disabled public write access.

impose des vitesses 9 years 2 months ago #18162

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
changing sinh to sin and cosh to cos allow you to decrease the length!
That seems to match with my first remark
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: jie

impose des vitesses 9 years 2 months ago #18163

  • jie
  • jie's Avatar
Ha yes, I make short the second line, ca roule!! J'etait debile.
mais ca derange trop, comme ca sous fortran...
The administrator has disabled public write access.

impose des vitesses 9 years 2 months ago #18164

  • jmhervouet
  • jmhervouet's Avatar
Hello,

Anyway it cannot work like this. Z is in global numbering, IBORD is for a boundary numbering, so you get wrong values of Z. You need to do:

N=(NP-1)*NPOIN2+NBOR2%I(K)

and then use Z(N) in your formula.

With best regards,

Jean-Michel Hervouet
The administrator has disabled public write access.

impose des vitesses 9 years 2 months ago #18165

  • jie
  • jie's Avatar
Thank you sir,
Why for Z, its index needs to do the treatment of "NBOR2%I(k)", while for UBORL, for example, whose index is IBORD=(NP-1)*NPTFR2+K, but not NBOR2%I(IBORD) or (NP-1)*NPTFR2+NBOR2%i(k) or something else, please???
The administrator has disabled public write access.

impose des vitesses 9 years 2 months ago #18166

  • jmhervouet
  • jmhervouet's Avatar
Hello,

It depends of the size of the array. Boundary condition arrays are smaller because they just contain the informations for boundary points. Z is an array given for all points, event in the middle of the domain. Hence the different numbering...
You can see the guide for programming in the Telemac system to have all the explanations on the different data structures.

Regards,

JMH
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.