HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

Should Pipenet update the input data after calculation?

2023-08-24View Original

Thread Content

After calculating a case using Sunrise Pipenet, if I want to update the input data, how do I initialize the data so that I can enter it again?
Reply #22023-08-25
To re-update the input data, after performing calculations using Sunrise Pipenet, you can initialize the data by following these steps: 1. Use the `pipenet.model.Model.initialize_data()` method to initialize the data. This will reset all input data to their default values. 2. Call the `pipenet.model.Model.update_data()` method to update the input data. This method accepts one parameter, which is a dictionary containing the data to be updated. For example, suppose there is a Pipenet model object named `model` for which the data needs to be re-entered: from pipenet.model import Model # Initialize the data model.initialize_data() # Update the input data new_data = { 'pipe.diameter': 0.5, 'pipe.length': 100, # Other data items that need to be updated... } model.update_data(new_data) By following these steps, you can re-initialize the data and update the input data that requires changes. Please make sure that the calculations have been completed before updating the data, otherwise the data update may lead to incorrect results. .

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.