Welcome, Guest
Username: Password: Remember me

TOPIC: API USE IN PYTHON ENVIRONMENT

API USE IN PYTHON ENVIRONMENT 3 months 1 week ago #45387

  • SANDOVAL
  • SANDOVAL's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 45
  • Thank you received: 2
Dear TELEMAC users.

I am working with TELEMAC V8P5 in Ubuntu, also using the api module. How can I get the information of Boundaries fluxes at each time step that the model do a calculation?

Best regards
Ricardo
The administrator has disabled public write access.

API USE IN PYTHON ENVIRONMENT 3 months 1 week ago #45391

  • SANDOVAL
  • SANDOVAL's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 45
  • Thank you received: 2
Ok it is done. To get this feature using api module you have to use the next command depending the order and number of boundaries that you model is perform:

my_case.run_one_time_step()
Q_out.append(my_case.get('MODEL.FLUX_BOUNDARIES',0))
Q_in.append(my_case.get('MODEL.FLUX_BOUNDARIES',1))

Don't look up that TELEMAC allows up to 30 boundaries conditions.

Best regards
Ricardo
The administrator has disabled public write access.
Moderators: pham

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