In this example we will demonstrate how to set up a parametric sweep, we simulate a 2D flowmeter example with different flow velocities to see how this changes the signal recorded at the receiver.
Ultrasonic flowmeters use acoustic waves to determine the velocity of a fluid flowing in a pipe. At no flow conditions, frequencies of an ultrasonic wave transmitted into a pipe and its reflections from the fluid are the same. Under flowing conditions, the frequency of the reflected wave is different due to the doppler effect. When the fluid moves faster the frequency shift increases linearly. The transmitter processes signals from transmitted waves and its reflections to determine the flow rate.
Download and Open the Model
OnScale Input Files have the file extension *.flxinp. To open the downloaded file:
- Open OnScale
- Select Analyst Mode
- Select the Menu button in the top left of the application
- Select Open
Preview model is used to view the geometry dimensions and material assignment of a model to ensure the script is correct. To preview a model, select the Preview Model icon in the Home tab of the application ribbon.
Note: Preview model will display data from any grph commands that come before the prcs command. If you have more than one grph command, you can cycle through the graphics by continuously selecting Preview Model. To close the preview, select Stop Preview.
Run Model on Cloud
To run the model on the cloud, select the Run on Cloud button in the Home tab of the application and follow these steps:
- Set vflow Start Value to 100, End Value to 200 and number of Increments to 5
- Select 4 CPUs
- Select Estimate
- Select Run
- From the Home tab, select the Storage icon
- Select the Refresh icon to refresh storage
- Select the Job Name from the dropdown menu
- Select the Download button
- Select Download All
Choose a directory to download the results to. These results will be stored in the folder: Flow_2D-YYYYMMDD-HHMMSS\1 where YYYYMMDD-HHMMSS is the current date and time.
Switch to Post Processor
Post Processor is a suite of tools used to visualise and analyse output data generated from OnScale simulations. Switch to Post Post Processor.
What kind of analysis can I do in Post Processor? Find out here.
To plot the average pressure signal measured at the receiver, follow these steps:
- In File Explorer, navigate to the download directory, expand folder Simulation 1 and double click the file 'Flow_2D.flxhst' to open it
- Repeat Step 1 for files in Simulation 8, 14 and 20
- In Results Manager, select the time average 'avrg rxSig:Average' by left clicking it
- Repeat Step 3 for the second, third and fourth curves
- Click on plot legend and name the curves according to the defect height
- 100 ms
- 140 ms
- 170 ms
- 200 ms
Simulate Flow Model in full 3D