Cloud Service
Submitted by symscape on October 16, 2011 - 15:19
Update: This feature is deprecated in the latest version of Caedium.
Caedium has the ability to outsource the intensive numerical CFD simulation to a Windows Azure cloud service.
Cloud Service Features
- Unsecure HTTP communication between Caedium and the Azure webserver
- Simple first-in first-out (FIFO) scheduling
- Simple service setup
Assumptions
- You have set up a Windows Azure account.
- In Hosted Services, Storage Accounts & CDN with the same affinity group name create:
- Hosted Service - you will need the following hosted service parameter to configure the Caedium service:
- DNS Prefix
- Storage Account - you will need the following storage account parameters to configure the Caedium service:
- Name
- Primary access key
- Hosted Service - you will need the following hosted service parameter to configure the Caedium service:
- You have downloaded, installed, and activated the Caedium RANS Flow or Professional add-ons.
Procedure
- Upload the solver distribution from the Windows 64-bit version of Caedium to your Azure storage account using the command: "C:\Program Files\Caedium\modules\ofburst\OfCloudUpload.exe" -StorageName <your storage name here> -StorageKey <your storage primary access key here> -BlobId openflow.zip -Dir "C:\Program Files\Caedium\openflow"
- Download the following files:
- ServiceConfiguration.cscfg (2 KB)
- OfCloudService.cspkg (9 MB) - deploys an Extra-Large Compute Instance
- Edit ServiceConfiguration.cscfg to match your Azure account by replacing:
- BLOB_STORAGE_NAME_HERE with your storage name
- BLOB_STORAGE_KEY_HERE with your storage primary access key
- USER_NAME_HERE with an arbitrary name of your choice
- PASSWORD_HERE with an arbitrary password of your choice
- If you want to experiment with more OfWorkerRoles or OfWebRoles then increase the associated <Instances count="1"> in ServiceConfiguration.cscfg.
- In the Windows Azure portal:
- Select Hosted Services, Storage Accounts & CDN, then Hosted Services, then Service <your service name> then New Production Deployment.
- In the Create a new Deployment dialog:
- Set Deployment name - with an arbitrary name.
- Set Package location - click Browse Locally... and select your OfCloudService.cpspkg file.
- Set Configuration file - click Browse Locally... and select your ServiceConfiguration.cscfg file.
- Click OK.
- A Warning dialog will appear asking Would you like to override and submit? - click Yes.
- The status of the deployment will appear in the Azure portal, when it reaches Ready the service is complete and ready to perform simulations.
- To test if the Azure service is available, try pointing your browser at http://<your hosted service DNS prefix>.cloudapp.net/ofapi.aspx and you should see the message Invalid username or password.
- In Caedium select the File Toolbar and click the Preferences button . In the Properties Panel turn on the preference Physics->OpenFOAM->Diagnostics to see feedback on the cloud service.
- Set the preference OpenFOAM->Parallel to Cloud.
- Set the following Parallel:Cloud associated preferences:
- Account = USER_NAME_HERE from step 3
- Account->Password = PASSWORD_HERE from step 3
- Processes = 7 (Extra Large Compute Instance has 8 cores)
- Hostname = <your hosted service DNS prefix>.cloudapp.net
- Try running a small simulation to test the service and if it is successful proceed to run your actual simulations.
- When you have completed your simulations, delete your deployment in the Azure portal by right clicking your deployment and selecting Delete.
Notes
- Azure charges for storage, bandwidth, and CPU time usage.
- Your billable CPU time starts as soon as you commit to deploying a service and continues as long as the service is deployed - whether it is running a simulation or not.
- If there are failures in the service your simulation may not run correctly.
- If you interrupt a running simulation, the simulation will continue to run on Azure.
- You might find it useful to browse your Azure storage account like a file system using CloudBerry. You can then delete any failed or redundant job files.
Tutorials
- Essentials Manual
- Builder
- RANS Flow
- Panel Flow
- Tips
- Accuracy Tool
- Clipping a View
- Cloud Burst Service
- Cloud Service
- Color Map
- Create an Anaglyph 3D Stereoscopic Image
- Import a SketchUp Model
- Import an OpenFOAM Mesh
- Microsoft Windows HPC Server 2008 Cluster Configuration
- Multiple Views
- Multiple Volume Flow Domain
- Parallel Configuration
- Particles or Streamlines
- Punch a Hole in a Face
- Relaxation Factors in RANS Flow Solvers
- Run, Stop, and Lock Controls
- Telemetry Posting to TwitPic and Twitter
- Topology Operations
- Trim a Face
- Use an Image as a Background
- Using Fields and Variables
- View a Mesh
- Visual Facets Control
- Visual Finish
- Visualization Preferences