當前位置:首頁 » 編程軟體 » opensees源代碼編譯

opensees源代碼編譯

發布時間: 2022-06-03 04:03:31

Ⅰ opensees navigator 2.5.6 win64需要注冊嗎

曾幾何時,我們創建可以顯示/隱藏一些內容的小組件時,我們不得不使用Javascript.有時候你可能不得不為這個小功能,下載一個完整的
JS
庫才能達到這個功能效果.為下面的時刻歡呼吧!HTML5提供了創建這種拖拽特點的方法,我們僅僅需要簡單的幾行html代碼就能獲得這種效果(從目前而
言,這種效果還依賴於使用的瀏覽器,當然,在不久的將來,這可能不是問題).下面讓我們一起來看看 <detail>元素.

下面就是規范中的描述

The details element represents a disclosure widget from which the user can obtain additional information or controls.
— WHATWG HTML5 specification

理論上我們可以用它創建那種折疊的小組件,用戶可以有打開和關閉的交互.在<details>我們可以放入我們任何想放入的內容.

瀏覽器的支持情況

在我們開始之前,實際一點,讓我們看看目前瀏覽器的支持情況,目前只有chrome支持 <details > 元素.Opera很快就會支持Opera will support it soon,讓我們來用chrome演示這種效果吧.

<details 的使用方法

這里有兩個相關的元素:<details>和可選的
讓我們來看下面的代碼:

<details>
<summary>Show/Hide me</summary>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
</details>

你可以通過下面的鏈接察看效果see this in action over at jsbin.這是一個簡單的例子但是可以將效果完美展現的代碼,沒有任何Javascript.

OPen 屬性

在上面的例子中,在頁面載入的時候內容是隱藏的。我們可以將<detail>默認的視覺屬性通過布爾值作修改,讓其當我們載入頁面的時候是展開的:
<details open>
<summary>Show/Hide me</summary>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
</details>

注意,這里並沒有 closed 屬性,因為只要你移除 open 屬性,執行的就是 closed 屬性效果。

<summary>元素
我們已經簡要的看了

的作用。因為它是短語內
容,我們可以使用內聯 (inline)標簽
<span;>。我們為什麼會有這種想法呢?也許這樣子能更方便的通過而外樣式控制顯示效果或者像 spec
建議的那樣:為一個表單元素增加一個 <label>標簽。如果他能生效的話,至少能讓我很順手:

<details>
<summary><label for="name">Name:</label></summary>
<input type="text" id="name" name="name" />
</details>

常理看,我們點擊 summary 的任何位置都應該展開
<detail>元素的內容。但是在這個例子中,我們點擊<summary>並沒有展開內容,因為你點擊的
是<label>他會將焦點放到 <input>標簽-即使那部分內容被隱藏在<details>標簽。
很明顯,在這點需要更好的聲明,你認為這個地方應該發生什麼事情呢?可能某個瀏覽器生產商能看一下這個效果。

<details>元素多層嵌套

你可以在<details>中嵌套<details>,可以完美的案例查看這個效果:<details>
<summary>Question 1</summary>
<p><strong>Pellentesque
habitant morbi tristique</strong> senectus et netus et malesuada
fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae,
ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam
egestas semper. <em>Aenean ultricies mi vitae est.</em>
Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper
pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo
vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget
tincint condimentum, eros ipsum rutrum orci, sagittis tempus lacus
enim ac i. <a href="#">Donec non enim</a> in turpis
pulvinar facilisis. Ut felis.</p>
<details>
<summary>Related documents</summary>
<ul>
<li><a href="#">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</a></li>
<li><a href="#">Aliquam tincint mauris eu risus.</a></li>
<li><a href="#">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</a></li>
<li><a href="#">Aliquam tincint mauris eu risus.</a></li>
</ul>
</details>
</details>

Ⅱ 如何修改opensees navigator源代碼

OpenSees各版本源代碼整理

2012-02-24 21:18:15| 分類: OpenSees | 標簽:opensees 版本源代碼 |舉報|字型大小 訂閱
註:本文是在markgps的博客的基礎上整理的,最近找OpenSees的源代碼發現不好打包下載了,全部變成了WebSVN版,不能整體的下載下來進行編譯,在網上找了下發現了提供各個版本的下載地址,特在原文的基礎上整理如下:

一、注意事項

Understand that this is for developers only. If you have never compiled and debugged a very large C/C++ program before, all this will do for you is use up a lot of disk space.
This code is covered by the COPYRIGHT. Please read the license before downloading it. The bottom line is that it's free to download and use prviding it's not for commercial use.
If you're just beginning to work with OpenSees then its recommended to start with a tarball from the most recent release. Releases occur on branches of the main cvs tree and have undergone QA and bug fixing to make them relatively stable. Later on, if you want to move off the branch and synchonize with the tip, use CVS.
The source code is distributed as either a Unix-style tar archive compressed by GNU zip (gz) or as a PC-style ZIP archive. (The only difference is the type of archive; the same source code files are inside the archive.
The files compile under linux or mac osx operating systems with versions Tcl8.3, Tcl8.4 and Tcl8.5. To specify the version of Tcl you need to provde a -D_Tcl83, -DTcl84 or -D_TCL85 preprocessor flag. This is set in Makefile.def.
On Windows machines Microsoft Visual STudio solutions are provided in OpenSees/Win32. For VC++ 2005, 2008 and beyond open the OpenSees2005.sln. These solutions have been set up assuming Tcl8.5.X has been installed on your machine and is located in C\Program FIles\Tcl.
二、各版本的下載地址

1、目前最新版本:

Unix systems stable.tar.gz archive
Win32 systems stable.zip archive
2、以往的版本:

Release_2.2.2 OpenSees2.2.2.tar.gz OpenSees2.2.2zip
Release_2.2.1 OpenSees2.2.1.tar.gz OpenSees2.2.1zip
Release_2.2.0 OpenSees2.2.0.tar.gz OpenSees2.2.0zip
Release_2.1.0 OpenSees2.1.0.tar.gz OpenSees2.1.0zip
Release_2.0.0 OpenSees2.0.0.tar.gz OpenSees2.0.0zip
Release_1.7.5 OpenSees1.7.5.tar.gz OpenSees1.7.5.zip
Release_1.7.4 OpenSees1.7.4.tar.gz OpenSees1.7.4.zip
Release_1.7.3 OpenSees1.7.3.tar.gz OpenSees1.7.3.zip
Release_1.7.2 OpenSees1.7.2.tar.gz OpenSees1.7.2.zip
Release_1.7.1 OpenSees1.7.1.tar.gz OpenSees1.7.1.zip
Release_1.7.0 OpenSees1.7.0.tar.gz OpenSees1.7.0.zip
Release_1.6 OpenSees1.6.tar.gz OpenSees1.6.Zip.exe
Release_1.5 OpenSees1.5.tar.gz OpenSees1.5.Zip.exe
Release_1.4 OpenSees1.4.tar.gz OpenSees1.4.Zip.exe
Release_1.3 OpenSees1.3.tar.gz OpenSees1.3.Zip.exe
Release_1.2 OpenSees1.2.tar.gz OpenSees1.2.Zip.exe
Release_1.1 OpenSees1.1.tar.gz OpenSees1.1.zip
Release_1.0 OpenSees1.0.tar.gz OpenSees1.0.zip
三、編譯說明

Once you download the gzip or zip archive, you will have to extract the source code files from the distribution and then follow the instructions on how to compile the source code for your system. If you don't have a compiler, or are unclear about compiling source code, then look first for a binary distribution of OpenSees.

While you're waiting for the download,you should familiarize yourself with the developer documentation we have compiled to date.
The source is also available through several other methods, including CVS.
四、兩種系統下的編譯簡介( Unix and Win32)

Unix:

Before you begin you need to make sure you have Tcl/Tk installed. Different releases require fifferent versions of tcl/tk. All versions before 1.4 require tcl/tk 8.2.x. OpenSees version 1.4 requires tck/tk8.3.x. OpenSees version 1.5 will reuire the latest version tcl/tk8.4.x. It is important you install the appropriate tcl/tk version. It is also VERY important you install the TCL header and library files. The default TCL installation may not include them, make sure they are selected when you are asked what to install by the TCL insallation wizard.
Now you need to download a version of OpenSees. Don't forget to read the license information.
Next you need to edit the file Makefile.def in the root of the repository (OpenSees). This file contains generic information used in all the Makefiles found in all the subdirectories. Example Makefile.def's for specific machines and can be found in the MAKES subdirectory.
If you are building on a machine for which a Makefile.def has already been constructed, you are strongly encouraged to this file to ../Makefile.def and edit this file.
We encourage developers who get OpenSees compiled on other platforms and compilers to submit their Makefile.def to save others the pain.

Finally, type 'make' in the OpenSees directory and the libraries and executables should be created for you! It may take awhile depending on the speed of your processor, so go take a walk.
Common Problems Building the Code:Getting the Makefile.def correct
Win32:

You will need a of Microsoft Visual C++ version 5.0 or later. Sorry about using Visual C++, we know it does not implement the current C++ standard - but it does have critical mass!

Before you begin you need to make sure you have Tcl/Tk installed. Different releases require fifferent versions of tcl/tk. All versions before 1.4 require tcl/tk 8.2.x. OpenSees version 1.4 requires tck/tk8.3.x. OpenSees version 1.5 will reuire the latest version tcl/tk8.4.x. It is important you install the appropriate tcl/tk version. It is also VERY important that you install the TCL header and library files. The default TCL installation may not include them, make sure they are selected when you are asked what to install by the TCL insallation wizard.
Now you need to download a version of OpenSees. Don't forget to read the license information.
We have provided you with a Visual C++ project, opensees.dsw, located in the OpenSees/Win32 directory. Click on this file to open it and then click on build to build it. However, be sure the active project in the workspace is set to openSees and not actor, the default active project.
If you are compiling your own code, we suggest you create a new project and link to our header files and library files.

Common Problems Building the Code:
The include directory for TCL header files is given as C:\Program Files\tcl\include in the OpenSees VC++ project settings. If Tcl is located in a different directory on your machine, you will have to change the project settings accordingly. The same goes for the TCL library files, which are given as C:\Program Files\tcl\lib in the project settings.
The include directory for MSDev library files is given as C:\msdev\lib in the OpenSees VC++ project settings. If MSDev is located in a different directory on your machine, you will have to change the project settings accordingly.
Sometimes you may need to build twice on the debug version. The linking fails the first time for some reason?
五、二次開發的文檔資料

This page is under construction and will be so for awhile. The documentaion, the most important source of information for the users, is somewhat behind in it's development. (What programmer ever likes to work on the documentation) However, the provision of suitable documentation is now a top priority.

Primers
There are a few basic primers which have been put together to show how to use the basic interpreter. While the command language is simple, it is useful for new developers to get aquanted with the overall design as there is typically a one to one correspondence between commands and method invocations or class constructors.
Class Specifications
For a detailed description of each of the classes in OpenSees have a look at the class interface. For each class a description of the classes usage, it's constructors and each indivial method is (or at least will be) provided.
OpenSees Dynamic API is a pdf document providing a description of how to add new materials and elements into OpenSees.

熱點內容
陰陽師按鍵腳本 發布:2024-05-05 12:00:33 瀏覽:758
魔獸查腳本 發布:2024-05-05 11:54:37 瀏覽:38
sqlserver執行時間 發布:2024-05-05 11:50:31 瀏覽:648
終端配置賬號該如何改密碼 發布:2024-05-05 11:24:37 瀏覽:825
成都存儲研發招聘 發布:2024-05-05 11:24:29 瀏覽:285
電腦伺服器名稱怎麼查找 發布:2024-05-05 10:49:37 瀏覽:470
電腦連到代理伺服器 發布:2024-05-05 10:40:02 瀏覽:250
華為安卓手機如何投屏到雷克薩斯 發布:2024-05-05 10:37:50 瀏覽:211
微博上傳原圖 發布:2024-05-05 10:20:05 瀏覽:749
伺服器換電腦需要什麼東西 發布:2024-05-05 09:52:28 瀏覽:754