• Title/Summary/Keyword: Code Generation

Search Result 1,018, Processing Time 0.023 seconds

Automatic ray-code generation for efficient ray tracing (효율적인 파선추적을 위한 파선코드 자동 생성에 관한 연구)

  • 이희일
    • Proceedings of the Earthquake Engineering Society of Korea Conference
    • /
    • 2000.04a
    • /
    • pp.55-62
    • /
    • 2000
  • In constructing a synthetic seismogram using ray-tracing method a suite of ray-code is required to obtain a realistic seismogram which is similar to the actual seismogram or earthquake record under consideration. An infinite number of rays exist for any arbitrarily located source and receiver. One select only a finite number of such rays in computing a synthetic seismogram so their selection becomes important to the validity of the seismogram being generated. Missing certain important rays or an inappropriate selection of ray-codes in tracing rays may result in wrong interpretation of the earthquake record or seismogram. Automatic ray-code generation will eliminate such problems. In this study we have developed an efficient algorithm, with which one can generate systemastically all the ray-codes connecting source and receiver arbitrarily located. The result of this work will helpful in analysing multiple reflections in seismic data processing as well as simulating Lg wave and multiply reflected or converted phases in earthquake study.

  • PDF

A Study on Tool Path Error Control for Disk Cams in a Five-Axis CNC Machining Center

  • Kwon, Soon-Man;Shin, Joong-Ho;Yoo, Geun-Jong
    • 제어로봇시스템학회:학술대회논문집
    • /
    • 2004.08a
    • /
    • pp.1012-1016
    • /
    • 2004
  • In this paper, we propose a simple but optimized NC code generating technique for disk cams by means of tool path error control in a five-axis CNC machining center. Using the geometric theorem of the triangle made between manufacturing points and error checkpoint, the tool path error has been studied for disk cams profile generation and an improvement in the profile has been obtained. Then, based on the present manufacturing approach a computer program is developed on $C^{++}$ language to perform and to verify the shape design, the manufacturing simulation, and the optimized generation of the NC code.

  • PDF

NURBS Interpolation Strategies of Complex Surfaces in High Speed Machining

  • Ameddah, Hacene;Assas, Mekki
    • International Journal of CAD/CAM
    • /
    • v.11 no.1
    • /
    • pp.27-32
    • /
    • 2011
  • The increase in the productivity and the assurance of quality machining on the NC machines depends on, amongst other things, the perfection of the programming using adequate methods of interpolation. The programming language is until now based on the code ISO 6983 which defines the principles of the code G. This latter is not well adapted to the new strategies of machining imposed by the machining of complex surfaces and machining at high speed with the increasingly more severe requirements of precision. The CNC which adopt the interpolation of NURBS (Non Uniform Rational B-spline) are very rare (FANUC Siemens${\ldots}$). Based on the advantages of NURBS (continuity, flexibility, smoothing$.{\ldots}$), new formats G are currently developed but their use is still very limited. Our work consists on putting forward these new approaches of programming using the interpolation of NURBS. For this reason, a program capable to trace NURBS trajectories under Visual BASIC 6.0 was developed. This program was used thereafter in CAM software for the generation of NURBS formats like their new formats NC.

  • PDF

A Study on the Development of a Three Dimensional Structured Finite Elements Generation Code (3차원 정렬 유한요소 생성 코드 개발에 대한 연구)

  • Kim, Jin-Whan
    • Journal of Ocean Engineering and Technology
    • /
    • v.13 no.1 s.31
    • /
    • pp.11-17
    • /
    • 1999
  • A three dimensional finite element generation code has been developed attaching simple blocks. Block can be either a quadrature or a cube depending on the dimension of a subject considered. Finite element serendipity basis functions are employed to map elements between the computational domain and the physical domain. Elements can be generated with wser defined progressive ratio for each block. For blocks to be connected properly, a block should have a consistent numbering scheme for vertices, side nodes, edges and surfaces. In addition the edge information such as the number of elements and the progressive ratio for each direction should also be checked for interfaces to have unique node numbers. Having done so, user can add blocks with little worry about the orientation of blocks, Since the present the present code has been written by a Visual Basic language, it can be developed easily for a user interactive manner under a Windows environment.

  • PDF

GEOUNED: A new conversion tool from CAD to Monte Carlo geometry

  • J.P. Catalan;P. Sauvan;J. Garcia;J. Alguacil;F. Ogando;J. Sanz
    • Nuclear Engineering and Technology
    • /
    • v.56 no.6
    • /
    • pp.2404-2411
    • /
    • 2024
  • The GEOUNED code is specifically designed to convert CAD models, defined using the B-rep approach, into MC radiation transport models, defined using the CSG approach, and vice versa from MC to CAD. This code incorporates standard features commonly found in conversion tools, including decomposition, conversion, and automatic void generation. Additionally, it introduces innovative features, mainly in the automatic void generation part, which are described in this article. GEOUNED has demonstrated successful application in highly detailed 3D models used in fusion neutronics, which are known for their complex geometries, particularly those utilized in ITER. The article includes examples showcasing GEOUNED's performance in these challenging models, as well as custom applications that highlight its flexibility in addressing non-standard problems. The code is open-source and utilizes Open CASCADE as the geometry engine, with FreeCAD serving as the Python API.

Code Generation Techniques for the Optimized Energy Consumption (최적화된 에너지 소비를 위한 코드 생성 기술)

  • Ko, Kwang-Man;So, Kyoung-Young
    • The Journal of the Korea Contents Association
    • /
    • v.8 no.12
    • /
    • pp.63-71
    • /
    • 2008
  • Recently, together with a new advent of embedded processor developed to support specific application area, and it evolution, a new study of software development to support the embedded processor and its commercial use has been revitalized. Specially, In a mobile device that is built-in embedded processor, software management is as important as hardware management for the limited power/energy. In this paper, we suggest that the code generation technique considering the energy dissipation through the verified retargetable compiler backend tool, EXPRESSION. For this goals, we describes the efficient code generation patterns and showed the variable performance results.

A Custom Code Generation Technique for ASIPs from High-level Language (고급 언어에서 ASIP을 위한 전용 부호 생성 기술 연구)

  • Alam, S.M. Shamsul;Choi, Goangseog
    • Journal of Korea Society of Digital Industry and Information Management
    • /
    • v.11 no.3
    • /
    • pp.31-43
    • /
    • 2015
  • In this paper, we discuss a code generation technique for custom transport triggered architecture (TTA) from a high-level language structure. This methodology is implemented by using TTA-based Co-design Environment (TCE) tool. The results show how the scheduler exploits instruction level parallelism in the custom target architecture and source program. Thus, the scheduler generates parallel TTA instructions using lower cycle counts than the sequential scheduling algorithm. Moreover, we take Tensilica tool to make a comparison with TCE. Because of the efficiency of TTA, TCE takes less execution cycles compared to Tensilica configurations. Finally, this paper shows that it requires only 7 cycles to generate the parallel TTA instruction set for implementing Cyclic Redundancy Check (CRC) applications as an input design, and presents the code generation technique to move complexity from the processor software to hardware architecture. This method can be applicable lots of channel Codecs like CRC and source Codecs like High Efficiency Video Coding (HEVC).

Improvement of the subcooled boiling model using a new net vapor generation correlation inferred from artificial neural networks to predict the void fraction profiles in the vertical channel

  • Tae Beom Lee ;Yong Hoon Jeong
    • Nuclear Engineering and Technology
    • /
    • v.54 no.12
    • /
    • pp.4776-4797
    • /
    • 2022
  • In the one-dimensional thermal-hydraulic (TH) codes, a subcooled boiling model to predict the void fraction profiles in a vertical channel consists of wall heat flux partitioning, the vapor condensation rate, the bubbly-to-slug flow transition criterion, and drift-flux models. Model performance has been investigated in detail, and necessary refinements have been incorporated into the Safety and Performance Analysis Code (SPACE) developed by the Korean nuclear industry for the safety analysis of pressurized water reactors (PWRs). The necessary refinements to models related to pumping factor, net vapor generation (NVG), vapor condensation, and drift-flux velocity were investigated in this study. In particular, a new NVG empirical correlation was also developed using artificial neural network (ANN) techniques. Simulations of a series of subcooled flow boiling experiments at pressures ranging from 1 to 149.9 bar were performed with the refined SPACE code, and reasonable agreement with the experimental data for the void fraction in the vertical channel was obtained. From the root-mean-square (RMS) error analysis for the predicted void fraction in the subcooled boiling region, the results with the refined SPACE code produce the best predictions for the entire pressure range compared to those using the original SPACE and RELAP5 codes.

A Method of Generating Code Implementation Model for UML State Diagrams (UML 상태 다이어그램을 위한 코드 구현 모델의 생성 방법)

  • Kim, Yun-Ho
    • Journal of the Korea Institute of Information and Communication Engineering
    • /
    • v.26 no.10
    • /
    • pp.1509-1516
    • /
    • 2022
  • This paper presents a method to generate a model of the code implementation for UML state diagrams. First, it promotes the states of a state machine into objects, and then it structures the behavior model on the mechanism of a state diagram based on State design pattern. Then, it establishes the rules of generating the code implementation, and using the rules, the Java code mode is generated for the implementations of State Diagrams in Java syntax grammar. In addition, Structuring the information of the code model is necessary for generating Java code automatically. The meta information is composed of Meta-Class Model and Meta-Behavior Model, on which we could construct the automatic code generating engine for UML State Diagrams. The implementation model generation method presented in this paper could be used as a stand-alone engine, or included and integrated as a module in the UML tools.

Design and Implementation of code generator to remove the parameter boundary failure in the unit test (단위테스트 중 매개변수 경계오류제거를 위한 코드 자동생성 시스템 설계와 구현)

  • Park, Youngjo;Bang, Hyeja
    • Journal of Korea Society of Digital Industry and Information Management
    • /
    • v.11 no.2
    • /
    • pp.1-10
    • /
    • 2015
  • As programs get more complicated and they are developed by various hands, the possibility that there are program bugs in the code has been increasing. And developers usually run unit tests to find these problems in the code. Besides, the developers are at the pain of getting stability of the code when they have to modify a code very often for clients requirements. In the methodlogy of TDD(Test Driven Development), developers write a unit test code first, and then write a program code for passing the unit test. The unit test must include the boundary condition test the reason why the possibility of occurring the bugs is very high. When failed to pass the test because of the value of a function is incorrect, not existed, out of the range or not matched etc, the program code will return the error code or occur the exception. In the document, the system is designed and implemented in order to insert the generated code automatically or suggest it to the developer, when the boundary condition test is failed. In conclusion, it is possible that the developer will get the code stability by searching the code and checking the code to be omitted automatically through this system.