Welcome, Guest
Username: Password: Remember me

TOPIC: new code

new code 7 years 5 months ago #26899

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
Hello everyone,
is there a posibility to add a new porosity program in telemac2d sources. I know that telemac have already the corpor.f to model porosity, I'm just asking if I can use my own code.
Thank you in advance for any kind of help or advise.
The administrator has disabled public write access.

new code 7 years 5 months ago #26902

  • Phelype
  • Phelype's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 64
Hello Mourad

The corpor.f subroutine is an empty one. It is intended to be programmed by the user. You can define the value of the porosity of each element.

There's an example that defines a quadrilateral and sets the porosity of the elements inside it as 0.5. You can use it as a guide to write your own code.

Best regards,

Phelype
The administrator has disabled public write access.

new code 7 years 5 months ago #26912

  • mourad
  • mourad's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 155
  • Thank you received: 6
Thanks Phelype for your quick reply,
Actually I know how to use corpor.f, I did it ùany times by the pasr, but I'm not realy stisfied by the result. The corpor code have a great advantage to other shemes I've found in the litterature cause the mass balance is fullfilled, however I can't understand why only a portion of the total volume is loaded in the porous medias, this volume corresponds to (n*V), n is the porosity.

My question is about wether is possible to couple a new code for Saint-Venant equations with porosity with the full finite element scheme of Telemeac2D.
The administrator has disabled public write access.

new code 7 years 5 months ago #26917

  • Phelype
  • Phelype's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 64
Oh, I completely misunderstood your question.

In this case I really don't know how to answer your question. Sorry.

I'll leave it to the developers.

Best Regards,

Phelype
The administrator has disabled public write access.

new code 7 years 5 months ago #26931

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

It depends on how the other code is used.
If it is a library with a api you can add the call in telemac.
And link it with the library.
If it is just an executable it is more complicated.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: pham

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