Orcaflex 基础介绍
- 格式:ppt
- 大小:7.11 MB
- 文档页数:38
Flex快速入门介绍一、Flex简介:Flex是一个针对企业级富互联网应用的表示层解决方案,是一种应用程序框架。
Flex系列产品包括编译工具和IDE,通过编写MXML和ActionScript代码,用编译器来生成swf文件,使用浏览器的Flash Player插件就可以进行观看。
MXML代码与jsp 很像,主要是用于布局和显示,ActionScript代码和javascript很像,语法也有很多相似之处。
总的来说,使用java的程序员很容易入手学习flex。
二、Flex与ActionScript基础:一个Flex应用程序有ActionScript和MXML两种语言代码组成。
从3.0开始ActionScript已经从基于原型脚本语言进化到完全面向对象的。
MXML则是一种标记语言,非常类似于大家所熟悉的超文本标记语言(HTML),扩展标记语言(XML)。
如何把MXML和ActionScript相互关联起来呢?对于编译器来说,解析这两种语法后最终被翻译成同一个对象,比如:<mx:Button id="btn"label="My Button"height="100"/>和Var btn:Button=new Button();bel="MyButton";btn.height=100;产生的是同一个对象,两者的主要不同是,ActionScript创建的对象(上面第二个例子)除了Button就没有别的了,而MXML中创建的对象将Button添加到包含MXML代码的任何组件上。
Flex框架根据MXML中的对象描述来调用构造函数,然后将其添加到父对象上或设置其为父对象的某个属性。
MXML文件中可用<mx:Script>标签包含ActionScript,不过ActionScript文件是不能包含在MXML里的。
学习Flex首先要了解RIA技术RIA是企第章Flex概述Adobe® Flex™是Adobe公司推出的多平台的RIA(Rich Internet Applications)开发产品。
它包含了一系列技术与产品,如Flex Framework、Flex Builder、Flex Charting、Adobe LiveCycle Data Services ES等。
本章将全面介绍Flex与Flex技术;对比Flex应用与传统网页应用;学习Flex包含的各个元素,与它们的工作原理。
1.1 RIA概述学习Flex首先要熟悉RIA技术。
RIA(富互联网应用程序)是企业级应用程序客户端的最新技术,具有高度的用户互动性与丰富的用户体验。
RIA技术的出现是在企业级应用程序经历了几次系统构架方面的转变的必定结果。
企业级应用程序最初的模式是客户机/服务器(Client/Server,C/S)应用程序。
20世纪90年代随着Windows的出现与客户端处理能力的增强,出现了客户机/服务器应用程序。
它使用图形用户界面,客户端的数据处理能力比较强。
但由于受到使用局域网的限制,客户端应用程序需要进行不断的更新,因此其应用范围存在很大的局限性。
20世纪90年代中期,互联网飞速进展,出现了浏览器/服务器(Browser/Server,B/S)应用程序。
Web技术的使用解决了C/S应用程序问题,但由于使用了HTML页面形式的用户界面,客户端的数据处理能力较C/S应用程序有所减弱。
RIA技术的出现重新平衡了客户端与服务器端的关系。
RIA是B/S技术在客户端的突破进展,它是集桌面应用程序的最佳用户界面功能与Web应用程序的普遍使用与快速、低成本布署与互动多媒体通信的实时快捷于一体的新一代网络应用程序。
RIA大致包含了Flex、Ajax、WPF、OpenLaszlo与Google Web Toolkit等一系列产品,而Flex是同类产品中最领先与成熟的产品,改善了用户体验。
OrcaFlex软件操作指南OrcaFlex软件操作指南按照客户要求,本报告以钢悬链立管(SCR)为例,从SCR总体强度分析、运动疲劳分析和安装分析三个方面给出了OrcaFlex软件的主要操作指南,现分别叙述如下。
1总体强度分析在OrcaFlex主界面里,由上到下依次是菜单栏、工具栏和模型显示窗口。
按住Ctrl+鼠标左键可以进行模型的旋转,按住Ctrl+鼠标中键可以进行模型放大和缩小,按住Ctrl+T可以正视整个模型,按住Ctrl+P 可以俯视整个模型。
1.1模型树的调用双击打开OrcaFlex软件,点击工具栏中的模型浏览器按钮(Model Browser),显示模型树。
1.2环境参数设置 双击Environment 按钮打开环境参数设置界面。
1.2.1Sea由上到下可依次设置海平面位置,运动粘性系数,海水温度,雷诺数计算方法,具体如下面表格所示。
其中海平面位置数值是相对于总体坐标系而言;温度为摄氏温度,它的大小直接影响到运动粘性系数。
而雷诺数的计算方法,主要取决于流速和结构特征长度的计算。
软件中三种方法雷诺数最终的计算公式分别为Re nom= |Vr|D/ν,Re cross = |Vr|Dcos(α)/ν,Re flow= |Vr|D/νcos(α),其中Vr径向速度。
OrcaFlex calculates Reynolds number in order to calculate drag and lift coefficients1.2.2Sea Density设置海水密度,可以是变化的,也可以是恒定不变的。
如该海域的海水密度为1025Kg/m3,具体如下图所示。
1.2.3Sea Bed设置海底形状,海水的深度、斜度以及海底土壤的刚度系数,其中海底斜度和海底方向都是相对于总体坐标系而言,具体参数应在立管总体设计参数中给1.2.4Waves设置波浪的参数,主要包括波浪方向、波高、周期、起始时间,波浪类型等,其中波浪方向是相对于总体坐标系而言,波浪类型的选取取决于分析类型和实际海况,波高和周期根据海况资料给出,具体参数设置如下面表格和图所示。
OrcaFlex软件操作指南按照客户要求,本报告以钢悬链立管(SCR)为例,从SCR总体强度分析、运动疲劳分析和安装分析三个方面给出了OrcaFlex软件的主要操作指南,现分别叙述如下。
1总体强度分析在OrcaFlex主界面里,由上到下依次是菜单栏、工具栏和模型显示窗口。
按住Ctrl+鼠标左键可以进行模型的旋转,按住Ctrl+鼠标中键可以进行模型放大和缩小,按住Ctrl+T可以正视整个模型,按住Ctrl+P可以俯视整个模型。
1.1模型树的调用双击打开OrcaFlex软件,点击工具栏中的模型浏览器按钮(Model Browser),显示模型树。
1.2环境参数设置双击Environment按钮打开环境参数设置界面。
1.2.1Sea由上到下可依次设置海平面位置,运动粘性系数,海水温度,雷诺数计算运动粘性系数海水温度(o T)雷诺数计算方法水平面位置(m)(m2/s)0 1.2E-6 15 沿横流方向计算其中海平面位置数值是相对于总体坐标系而言;温度为摄氏温度,它的大小直接影响到运动粘性系数。
而雷诺数的计算方法,主要取决于流速和结构特征长度的计算。
软件中三种方法雷诺数最终的计算公式分别为Re nom= |Vr|D/ν,Re cross= |Vr|Dcos(α)/ν,Re flow= |Vr|D/νcos(α),其中Vr径向速度。
OrcaFlex calculates Reynolds number in order to calculate drag and lift coefficients1.2.2Sea Density设置海水密度,可以是变化的,也可以是恒定不变的。
如该海域的海水密度为1025Kg/m3,具体如下图所示。
1.2.3Sea Bed设置海底形状,海水的深度、斜度以及海底土壤的刚度系数,其中海底斜度和海底方向都是相对于总体坐标系而言,具体参数应在立管总体设计参数中给出。
具体如下面表格和图表所示。
ORACLE ERP开发之OracleForms基础(一)—— Forms设置部分责任编辑:晓熊作者:IT168 JarWang2009-04-28【内容导航】∙第1页:Forms基本对象概念∙第2页:深入了解Forms的事务触发机制文本Tag:Oracle ERP【IT168 技术文档】ORACLEERP开发基础之前言/a2009/0427/274/000000274048.shtml Forms基本对象概念明白了上面的基本概念,就可以开工了。
设置ITEM为必填项Setup:Effect:此效果与是set_item_property('test.l_test',required,property_true)一样的。
设置ITEM的初始值为当前日期实现按“ENTER”自动跳至下一条记录设置BLOCK属性:导航器风格:改变记录。
使用堆叠画布Effect:1. 先将数据块、画布布局好(用向导的方式就可以了,具体操作就不用讲了吧)。
2. 在画布中创建一个堆叠画布。
3. 将项的画出属性更为堆叠画布(这一步最关键了)。
4.调整后得到下面这效果了。
深入了解Forms的事务触发机制编写一个健壮的FORMS应用程序,免不了要做各种数据的检验动作。
所以必须了解FORMS事务触发器的工作原理。
其他类型的触发器相对来说比较好理解,就不详说了。
① FORMS处理事务分成发送(POST)和提交(COMMIT)两个阶段。
这个跟JAVA 中的事务操作类似,也就是Statement和Commit两个阶段。
但FORMS一些规则比较死,也就是说规定好POST之前会触发PRE触发器之类等等。
②事务触发器分成三类,PRE-XXX、ON-XXX、POST-XXX,它们的执行顺序可以直接从其英文缩写得出。
例:执行INSERT操作,会按以下顺序进行。
1.1从数据项复制数据。
1.2触发PER-INSERT触发器。
1.3检查记录的惟一性。
User’s Guide to using OrcaFlexInterface in FAST v8 IntroductionThis document briefly describes how to use OrcaFlex coupled to FAST v8 for modeling floating offshore wind turbines. OrcaFlex is a commercial software package developed by Orcina for the design and analysis of marine systems. When the OrcaFlexInterface module is used in FAST, all hydrodynamic and mooring loads will be computed using OrcaFlex, while the turbine, tower, and floating platform structural dynamics; aerodynamics; and control and electrical-drive dynamics will be computed by FAST. To use this module with FAST, a valid OrcaFlex license is needed and a special DLL compiled by Orcina is required (FASTlinkDLL.dll). This DLL is called by FAST during the FAST simulation to compute the loads on the platform by OrcaFlex. A 32- and 64-bit version of FASTlinkDLL.dll compatible with the 32- and 64-bit Windows executable version of FAST is available at /Support/FASTlink.zip. One should choose the version that matches the addressing scheme of the version of OrcaFlex that is installed, otherwise the simulation will not run. A 32- and 64-bit Windows executable version of FAST v8 is available at https:///FAST8.At this time, FAST’s ElastoDyn structural-dynamics module assumes for a floating platform that the substructure (floating platform) is a six degree-of-freedom (DOF) rigid body. At each time step (the FAST glue code and OrcaFlex must both use the same time step), OrcaFlex receives the six-DOF position, orientation, and velocities of the platform, computes the hydrodynamic and mooring loads, and returns them back to FAST in the form of a six-by-six added-mass matrix and six-by-one load vector (three forces and three moments). FAST will take these OrcaFlex outputs, along with the six-DOF platform acceleration, and compute the total six-component hydrodynamic and mooring loads to be applied to the platform in ElastoDyn, including hydrodynamic added-mass effects.This document was written when the interface between OrcaFlex 9.8d and FAST v8.12 was first developed, but may apply to newer releases. It may also work with earlier versions of OrcaFlex, starting with 9.7b, though compatibility has not been tested.Modifying the FAST Input FileWhen the OrcaFlexInterface module is used in FAST, all hydrodynamic and mooring loads will be computed using OrcaFlex. This replaces the HydroDyn module and alternative mooring modules. In the FAST input file, this is done by setting the following options in the FAST primary input file: •CompHydro = 0•CompMooring = 4•MooringFile = “<OrcaIptFileName>”where <OrcaIptFileName> is the name of the input file for the OrcaFlexInterface module. The format of this file is as given in Appendix A. This file specifies the name of the OrcaFlex input file without the .dat file extension (OrcaIptFileName) and the name of the Windows DLL supplied by Orcina with the .dll file extension (DLL_FileName).As OrcaFlex and the FAST glue code must both use the same time step, an appropriate time step suitable to both software should be selected. Additionally, the six platform DOFs in FAST’s ElastoDyn module should also be enabled to properly transfer loads and motions between FAST and OrcaFlex. Also, the same platform initial conditions should be set in both ElastoDyn and OrcaFlex.No other changes are required or limitations imposed on FAST.FAST Output VariablesWhen FAST is executed with the OrcaFlexInterface module enabled, an additional 18 output channels are automatically added to the FAST output file (see Table 1). Additional results calculated internally within OrcaFlex are written to the OrcaFlex simulation file, <OrcaIptFileName>.sim, accessible through OrcaFlex.Table 1: Output Parameters from OrcaFlexInterfaceName Description Convention UnitsDirected along x i-axis (kN) OrcaFxi Total platform horizontal surge force (includingadded mass)Directed along y i-axis (kN) OrcaFyi Total platform horizontal sway force (includingadded mass)Directed along z i-axis (kN) OrcaFzi Total platform vertical heave force (including addedmass)About the x i-axis (kN·m) OrcaMxi Total platform roll tilt moment (including addedmass)About the y i-axis (kN·m) OrcaMyi Total platform pitch tilt moment (including addedmass)OrcaMzi Total platform yaw moment (including added mass) About the z i-axis (kN·m)Directed along x i-axis (kN) OrcaHMFxi Platform horizontal surge force calculated byOrcaFlex (hydrodynamic + mooring)Directed along y i-axis (kN) OrcaHMFyi Platform horizontal sway force calculated byOrcaFlex (hydrodynamic + mooring)Directed along z i-axis (kN) OrcaHMFzi Platform vertical heave force calculated by OrcaFlex(hydrodynamic + mooring)About the x i-axis (kN·m) OrcaHMMxi Platform horizontal roll tilt moment calculated byOrcaFlex (hydrodynamic + mooring)About the y i-axis (kN·m) OrcaHMMyi Platform horizontal pitch tilt moment calculated byOrcaFlex (hydrodynamic + mooring)About the z i-axis (kN·m) OrcaHMMzi Platform horizontal yaw moment calculated byOrcaFlex (hydrodynamic + mooring)Directed along x i-axis (kN) OrcaAMFxi Platform horizontal surge force due to added masseffectsDirected along y i-axis (kN) OrcaAMFyi Platform horizontal sway force due to added masseffectsDirected along z i-axis (kN) OrcaAMFzi Platform vertical heave force due to added masseffectsOrcaAMMxi Platform horizontal pitch roll moment due to added About the x i-axis (kN·m)mass effectsAbout the y i-axis (kN·m) OrcaAMMyi Platform horizontal pitch tilt moment due to addedmass effectsAbout the z i-axis (kN·m) OrcaAMMzi Platform horizontal yaw moment due to added masseffectsConstructing the OrcaFlex ModelThe steps required to develop an OrcaFlex model compatible with FAST are as follows:1.In OrcaFlex, open a New Model (Ctrl+N).2.In the model browser, double click on Variable Data. In the Externally Calculated Data panel,select External Functions. Add one Number of data sources, and rename ExternalFunction1 to ExtFn. Browse for the FASTlinkDLL.dll file. For the Function Name, select ExtFn.3.In the model browser, go to General -> Integration and Time Step -> Integration Method, andmake sure this value is set to Implicit.4.Insert a new vessel. In the model browser, go to Vessel1:a.Rename Vessel1 to Platform.b.Set Initial Position and Orientation both to (0,0,0). Note: If there is to be an initialplatform offset, the initial platform displacement must be set in the FAST ElastoDyninput file as well.c.Under Calculation:i.Set Primary Motion to Externally Calculated.ii.Set Superimposed Motion to None.iii.Under Included Effects, check Applied Loads, Wave Load (1st order) and Added Mass and Damping. Other effects may be included if the WAMIT input filecontains the necessary information. Note that the 2nd-order wave-drift loadsare not included in the WAMIT input files we provide, and the Applied Loadsvalue will be defined in a later section.d.Under the Primary Motion tab:i.Set Externally calculated primary motion to ExtFn.5.Change the properties of the vessel by opening Vessel Type1 from the model browser.a.In the bottom of the screen, press Import. Locate your WAMIT *.out file, and pressopen.b.Under Structure, set Mass and Moment of Inertia Tensor to a small non-zero values(because these properties are accounted for in FAST).c.Optional: At this stage, we suggest changing the vessel geometry to reflect anappearance representative of the system being modeled. This will not influence thesimulation, but it will help with visualizing the vessel motions and mooring/vesselconnections after the simulation is completed. To do so, go to the Drawing tab andadd/remove lines and vertices of the vessel.6.In the model browser, go to Environment.a.Under Seabed change the water depth.b.If desired, the wave properties can be given under Waves.7.The mooring can now be presented in the model.a.Click on the New Line icon on the toolbar and add a mooring line to the model. In themodel browser, open Line1.b.Under Connect to Object: Fix one end to Platform and one end to Anchored.c.Under Object Relative Position, set the desired positions of the ends of the mooringcable.d.If needed, change the Length and Target Segment Length under Structure.e.Repeat 7 a-d for each mooring line.8.Change the properties and attributes of the mooring by opening Line Type1 in the ModelBrowser.9.The next step in the assembly of the model is to include bodies that account for the quadraticdrag force the platform.a.Click on New 6D Buoy on the toolbar and add the buoy to the model. In the modelbrowser, open 6D Buoy1.b.Click on Give Buoy Negligible Properties in the bottom of the window.c.Set Type to Spar Buoy.d.Set Connection to Platform.e.Set Initial Position and Attitude of the origin of the element.f.Under Geometry:i.Discretize the body into smaller sub-bodies of desired length by increasing thenumber of Cylinders. This is done to ensure sufficient resolution of the dragalong the body. Note: Remember to extend the body above the MWL.ii.All cylinders must have the Outer Diameter set to a small non-zero value. This is done to make sure there is no extra submerged volume and hence no extrahydrostatic stiffness, because this is already accounted for under Vessel Type1.g.Under Drag and Slam:i.Define the Areas and Coefficients under Drag Forces.h.Repeat 9 a-g if multiple drag members are desired.10.The final step needed is to prescribe an Applied Load on the Platform. This step is crucial toensure the simulation begins at equilibrium.a.Define the total mass of your system. This can be found in the *.ED.sum file on line 64under Mass Incl. Platform.b.Multiply the mass by -Gravity to get the total force in Z (here named FzFAST). Note:Gravity is by default 9.80665 m/s2 in OrcaFlex and set within the FAST ElastoDyn inputfile.c.In OrcaFlex, run Single Statics (F9), open Select Results (F5). Select Summary Resultsand double click Platform. Under Loads in Global Axes Directions, the forces in Z aresummed up. The Total force has to be equal and opposite to FzFAST. If this is not thecase:i.Open the Platform from the model browser.ii.Go to the Applied Loads tab.iii.Set Global Loads to 1.iv.Under Applied Force (relative to global axes) put in the force correction underZ.v.Close the window and repeat 10c to verify equilibrium.Provided ExamplesThree different example models (all using the NREL 5-MW turbine) and eight different test cases are provided with the FASTlink archive, as summarized in Table 2.Table 2: Content of the Example Models Provided with the FASTlink ArchiveName DescriptionMIT-NREL_TLP MIT/NREL tension-leg platform (TLP) exposed to stochastic wind and waves OC3_Spar OC3-Hywind spar exposed to stochastic wind and wavesOC4_LC_1.3a Free surge decay of the OC4-DeepCwind semisubmersibleOC4_LC_1.3b Free heave decay of the OC4-DeepCwind semisubmersibleOC4_LC_2.1 OC4-DeepCwind semisubmersible exposed to deterministic wavesOC4_LC_2.2 OC4-DeepCwind semi-submersible exposed to stochastic wavesOC4_LC_3.1 OC4-DeepCwind semisubmersible exposed to deterministic wind and waves OC4_LC_3.2 OC4-DeepCwind semisubmersible exposed to stochastic wind and waves SimulateThe simulation is started from FAST and FAST is run normally. E.g., for a 64-bit simulation, open a Windows command prompt to a folder where all the simulation files are housed and type:FAST_x64.exe NRELOffshrBsline5MW_Floating_OC3Hywind.fstThe simulation will run with FAST coupled to OrcaFlex. Once it is completed, the FAST-related outputs are written to the normal FAST output files and the OrcaFlex-related outputs are written to the OrcaFlex simulation file, <OrcaIptFileName>.sim, accessible through OrcaFlex.Appendix A: OrcaFlexInterface Module Input FileThis example input file is for the OC3-Hywind spar offshore turbine. Another set of example input files using the MIT/NREL TLP and the OC4-DeepCwind semisubmersible are also available.------- OrcaFlex Interface v1.00.* INPUT FILE ----------------------------------Test for OrcaFlex interface to FAST v8---------------------- SIMULATION DATA -----------------------------------------False Echo - Echo input data to "<RootName>.ech" (flag)NRELOffshrBsline5MW_Floating_OC3Hywind_Orca OrcaIptFileName - name of OrcaFlex input file without the .dat file extension (relative, or including the full path)FASTLinkDLL.dll DLL_FileName - name of dll to use for OrcaFlex including the .dll file extension (relative, or including the full path)。