Using Python scripting to enhance workflow in Autodesk Maya

2021 ◽  
Author(s):  
Ann McNamara
Keyword(s):  
2016 ◽  
Author(s):  
Kaiheng Hu ◽  
Pu Li ◽  
Yong You ◽  
Fenghuan Su

Abstract. A hydrologically based model is developed for delineating hazard zones in valleys of debris flow basins. The basic assumption of this model is that the ratio of peak discharges of any two cross sections in a debris-flow basin is a power function of the ratio of their flow accumulation areas. Combining the advantages of the empirical and flow routing models of debris-flow hazard zoning, this hydrological model with minimal data requirements has the ability to produce hazard intensity values at different event magnitudes. The algorithms used in this model are designed in the framework of grid- based geographic processing and implemented completely on ArcGIS platform and a Python scripting environment. Qipan basin in the Wenchuan county of Sichuan province, southwest China where a large-scale debris-flow event occurred on July 11, 2013 was chosen as the test case for the model. The hazard zone identified by the model showed good agreement with the real inundation area of the event. The proposed method can help identify small hazard areas in upstream tributaries and the developed model is promising in terms of its application in debris-flow hazard zoning.


2019 ◽  
Vol 37 (4A) ◽  
pp. 140-147
Author(s):  
Oday Jasim ◽  
Khalid Hasoon ◽  
Noor Sadiqe
Keyword(s):  

2013 ◽  
Vol 69 (7) ◽  
pp. 1274-1282 ◽  
Author(s):  
Nicholas K. Sauter ◽  
Johan Hattne ◽  
Ralf W. Grosse-Kunstleve ◽  
Nathaniel Echols

Current pixel-array detectors produce diffraction images at extreme data rates (of up to 2 TB h−1) that make severe demands on computational resources. New multiprocessing frameworks are required to achieve rapid data analysis, as it is important to be able to inspect the data quickly in order to guide the experiment in real time. By utilizing readily available web-serving tools that interact with the Python scripting language, it was possible to implement a high-throughput Bragg-spot analyzer (cctbx.spotfinder) that is presently in use at numerous synchrotron-radiation beamlines. Similarly, Python interoperability enabled the production of a new data-reduction package (cctbx.xfel) for serial femtosecond crystallography experiments at the Linac Coherent Light Source (LCLS). Future data-reduction efforts will need to focus on specialized problems such as the treatment of diffraction spots on interleaved lattices arising from multi-crystal specimens. In these challenging cases, accurate modeling of close-lying Bragg spots could benefit from the high-performance computing capabilities of graphics-processing units.


2021 ◽  
Vol 12 (4) ◽  
pp. 216-222
Author(s):  
N. K. Petrova ◽  
◽  
A. P. Mukhachev ◽  
A. A. Zagidullin ◽  
S. M. Koutsenko ◽  
...  

The description and principles of developing a mobile application for the Android platform that provides free access to electronic courses on teaching the basic structures of the Python language and the construction of template programming algorithms based on them are presented. The content of the course is based on the principle of comparative analysis with the C++ language, one of the goals of which is to differentiate the tasks for which it is more efficient to use either the Python scripting language or the C++ compiler. The developed application is logically integral, allows the possibility of supplementing with new data — examples, types of algorithms — and, no less important, is free.


2021 ◽  
Author(s):  
Farren Kaylyn Foo ◽  
Derric Shen Chien Ong

Abstract Oil prices see large fluctuations peculiarly over the last eight years due to natural disasters, political instability, and Covid-19 pandemic shock. These prompt to anxiety towards expenditure in planning and forecasting of a field development plan (FDP). Economic optimization of a reservoir under water drive can be extremely tedious and time consuming especially for complex field. Traditionally, upon completion of forecast optimization on fluid production, reservoir engineer willhand over the reservoir models to petroleum economist for economical evaluation. If the chosen development strategy is not economically viable, the model strategies will have to be updated, and continue the repetition of financial evaluation all over again. Hence, this paper established an automated workflow that diminished the dilemma on iterations obligation between simulation runs and financial reviews in searching for most efficient waterflooding strategy. The automated workflow is accomplished by bridging three tools together seamlessly utilizing python scripting. These include the cash flow economic spreadsheet model, the dynamic simulator, and an assisted uncertainty analysis tool. The process first started with defining the economic parameters such as OPEX, CAPEX, oil price, taxes, discounted rates, and other financial parameters on an annual basis in spreadsheet. The uncertainty parameters: water injection rate, maximum water cut, and injection duration will be evaluated during forecast optimization to produce project efficiency indexes: Net Present Value (NPV) and Benefit-Cost Ratio (BCR). This integration was achieved by python script that automatically creates a coding path which exchanges simulation production and economic spreadsheet data at every simulation time step and each development strategy, that require no manual intervention. The integrated economic-dynamic model workflow has successfully applied on West Malaysian field and Olympus model, a development strategy that maximize oil recovery without neglecting cost of water disposal, storage for total water produced from the reservoir. This paper successfully identified the most efficient waterflooding strategy and production constraints for each well using BCR as objective function for optimization. The optimum development scenario does have a BCR which is more than 2 which show that investment on that particular development strategy is profitable. The results also demonstrated a crucial impression that the highest oil cumulative production may not results in high BCR due to cost involvement in resolving water production and field maintenance services. This paper outlined the methodology, python scripting codes, and how integration automation works that successfully optimized an injection strategy in a development project using economic model from third-party application. The results of this automated workflow demonstrate a successful utilization of new technologies and simple customize programming knowledge that promote cross-discipline integration for enhanced work-time efficiencies in problem solving that is suitable for all reservoir model type to determine its success rate and economic viability during FDP.


Author(s):  
Kuang-Wu Chou ◽  
Chang-Wei Huang

This study proposes a new element-based method to solve structural topology optimization problems with non-uniform meshes. The objective function is to minimize the compliance of a structure, subject to a volume constraint. For a structure of a fixed volume, the method is intended to find a topology that could almost conform to the compliance minimum. The method is refined from the evolutionary switching method, whose policy of exchanging elements is improved by replacing some empirical decisions with ones according to optimization theories. The method has the evolutionary stage and the element exchange stage to conduct topology optimization. The evolutionary stage uses the evolutionary structural optimization method to remove inefficient elements until the volume constraint is satisfied. The element exchange stage performs a procedure refined from the element exchange method. Notably, the procedures of both stages are refined to conduct non-uniform finite element meshes. The proposed method was implemented to use the Abaqus Python scripting interface to call the services of Abaqus such as running analysis and retrieving the output database of an analysis. Numerical examples demonstrate that the proposed optimization method could determine the optimal topology of a structure that is subject to a volume constraint and whose mesh is non-uniform.


2018 ◽  
Vol 2018 ◽  
pp. 1-14
Author(s):  
A. Y. Elruby ◽  
Sam Nakhla ◽  
A. Hussein

The eXtended Finite Element Method (XFEM) is a versatile method for solving crack propagation problems. Meanwhile, XFEM predictions for crack onset and propagation rely on the stress field which tends to converge at a slower rate than that of displacements, making it challenging to capture critical load at crack onset accurately. Furthermore, identifying the critical region(s) for XFEM nodal enrichments is user-dependent. The identification process can be straightforward for small-scale test specimen while in other cases such as complex structures it can be unmanageable. In this work a novel approach is proposed with three major objectives; (1) alleviate user-dependency; (2) enhance predictions accuracy; (3) minimize computational effort. An automatic critical region(s) identification based on material selected failure criterion is developed. Moreover, the approach enables the selection of optimized mesh necessary for accurate prediction of failure loads at crack initiation. Also, optimal enrichment zone size determination is automated. The proposed approach was developed as an iterative algorithm and implemented in ABAQUS using Python scripting. The proposed algorithm was validated against our test data of unnotched specimens and relevant test data from the literature. The results of the predicted loads/displacements at failure are in excellent agreement with measurements. Crack onset locations were in very good agreement with observations from testing. Finally, the proposed algorithm has shown a significant enhancement in the overall computational efficiency compared to the conventional XFEM. The proposed algorithm can be easily implemented into user-built or commercial finite element codes.


Water ◽  
2018 ◽  
Vol 10 (10) ◽  
pp. 1382 ◽  
Author(s):  
Tomasz Dysarz

The purpose of the paper was to present selected techniques for the control of river flow and sediment transport computations with the programming language Python. The base software for modeling of river processes was the well-known and widely used HEC-RAS. The concepts were tested on two models created for a single reach of the Warta river located in the central part of Poland. The ideas described were illustrated with three examples. The first was a basic simulation of a steady flow run from the Python script. The second example presented automatic calibration of model roughness coefficients with Nelder-Mead simplex from the SciPy module. In the third example, the sediment transport was controlled by Python script. Sediment samples were accessed and changed in the sediment data file stored in XML format. The results of the sediment simulation were read from HDF5 files. The presented techniques showed good effectiveness of this approach. The paper compared the developed techniques with other, earlier approaches to control of HEC-RAS computations. Possible further developments were also discussed.


Sign in / Sign up

Export Citation Format

Share Document