问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

Ansys文件夹中不同后缀名的文件是干什么的?

发布网友 发布时间:2022-04-23 09:13

我来回答

2个回答

懂视网 时间:2022-04-10 22:01

filedb

FileDB - A C# database to store files

 

FileDB is a free, fast, lightweight C# (v3.5) DLL project to store, retrive and delete files using a single file container on disk. Ideal for store small, medium or big files without databases and keep organized on a single disk file.

 


homeissuesdiscussions

Update 2015-01-24

Try LiteDB, my new NoSql database with file stream support for C#. http://www.litedb.org

FileDB - Project Description

FileDB is a free, fast, lightweight C# (v3.5) DLL project to store, retrieve and delete files using a single archive file as a container on disk. It‘s ideal for storing files (all kind, all sizes) without databases and keeping them organized on a single disk file.

News

  • First stable version was launched
  • Improvements on concurrent write access
  • New method: Export - Export all files to a directory

  • Let‘s see how to use FileDB with static helper methods.

     using Numeria.IO;
    
     var pathDB = @"C:TempMyDB.fdb";
     
     // Creating an empty FileDB archive
     FileDB.CreateEmptyFile(pathDB);
     
     // Store file from input stream
     var info = FileDB.Store(pathDB, "MyFileName.jpg", inputStream);
     // -or- store directly from the file itself
     var info = FileDB.Store(pathDB, @"C:TempMyPhoto.jpg");
     
     // The ‘info‘ variable returned contains information about your file (generated GUID, filename, file-length, mime-type) 
     var fileGuid = info.ID;
     
     // Reading file inside FileDB and writing it on an output stream (also available to write it directly to a file)
     var info = FileDB.Read(pathDB, fileGuid, outputStream);
     
     // Deleting a file
     var ok = FileDB.Delete(pathDB, fileGuid);
    
    

    FileDB Methods

  • CreateEmptyFile - Create an empty data file archive
  • Store - Store from file/stream to the data file
  • Read - Search a fileID and restore it to output file/stream
  • Delete - Delete a file
  • ListFiles - List all files inside the archive
  • Shrink - Reorganize archive removing unused disk space
  • Export - Export files inside archive to a directory

  • All operations have a static method helper or can be used from a FileDB instance.

    ASP.NET MVC Example

    Below is a basic example to store/retrieve/delete information in a ASP.NET MVC Controller

     private string pathDB = @"C:TempMvcDemo.fdb";
    
     // Uploading a file
     [HttpPost]
     public ActionResult Upload()
     {
     HttpPostedFileBase file = Request.Files[0] as HttpPostedFileBase;
    
     if (file.ContentLength > 0)
      FileDB.Store(pathDB, file.FileName, file.InputStream);
    
     return RedirectToAction("Index");
     }
    
     // Download
     [HttpGet]
     public ActionResult Download(string id)
     {
     // Using a classic way to download a file, instead of FileContentResult mode. 
     // Optimizing for big files. Your webserver will not consume CPU/Memory to download this file (even very large files)
    
     using (var db = new FileDB(pathDB, FileAccess.Read))
     {
      var info = db.Search(Guid.Parse(id));
    
      Response.Buffer = false;
      Response.BufferOutput = false;
      Response.ContentType = info.MimeType;
      Response.AppendHeader("Content-Length", info.FileLength.ToString());
      Response.AppendHeader("content-disposition", "attachment; filename=" + info.FileName);
    
      db.Read(info.ID, Response.OutputStream);
    
      return new EmptyResult();
     }
     }
    
    

    Why?

    Well, all web developers already had this problem: "I need to store same user files (photos, documents, ...) and I need to save them on my web server. But where? File system or database?" (See some discussion in http://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay#3756)
    The problem is: the database was not designed to store files. ADO.NET doesn‘t have a good method to work with streams (only byte[]). For small files (less then 100K) it works very nice. But what happens with a 10Mb file? 100Mb? It‘s terrible! The solution: work on filesystem!
    The filesystem has a problem too: what if my user wants to upload 300 files? And what if I have 2000 users? You will have thousands of files to backup and manage, and this will be a pain.
    My idea: a single archive (or a single archive per user) to store only user uploaded files. I use the SQL Server database to store the ID file reference (GUID) and FileDB does the rest of the job, storing and managing the files and bytes.

    How FileDB works?

    FileDB was designed to be fast, very simple, file-based and works with all file sizes. FileDB doesn‘t consume lots of memory because it works only with streams (no byte[]). The data structure is built with two kinds of pages: IndexPage and DataPage.
    - The IndexPage stores information about the file descriptor and it‘s organized in a binary tree structure.
    - The DataPage stores the file bytes.
    Both pages have 4096 bytes (plus 100 bytes to file header). Each page has its own header to store information about the data inside the page.
    You can delete a file inside the archive and the empty data pages will be used on next insert. Or you can shrink database to get your non-used bytes.
    FileDB caches (in memory) only index pages, to be faster on a second search.

    Limitations

    I‘ve made many tests to check performance and limitations with all file sizes. To protect against many clients changing data on same archive, FileDB uses read share mode. This way many users can search/read simultaneously but only one user can write (store/delete) at a time. FileDB class also implements IDisposable so you can use it inside a using code.

     using(var db = new FileDB(pathDB, FileAccess.ReadWrite))
     {
     db.Store(@"C:TempMyPhoto.jpg");
     }
    
    

    The data size limitations are based on .NET MaxValue constants. FileDB works with UInt32 (4 bytes unsigned), which limits each file to 4GB and the database to 16TB (4096 Pages * UInt32.MaxValue).

    Future

    1. I intend to create a windows client application to explore the contents of a FileDB database. It will be a useful tool to manage files inside a database.
    2. Create a compressed data page in which data can be stored in a zip mode.
    3. Any other suggestions?

    Contribute

    Please, feel free to help and contribute with this project adding you comments, issues or bugs found.

    FileDb

    标签:UNC   ima   output   max   size   project   cte   system   bin   

    热心网友 时间:2022-04-10 19:09

    .db是数据库文件,记录有限元单元,节点,载荷等数据
    dbb文件是你在存储时ANSYS自动生成的当前database的备份。比如你已经有一个file.db,当你点击save时,ANSYS先把原来的file.db另命名为file.dbb后,新生成一个file.db。db文件中可以包含部分结果。
    .log是日志文件,以追加时记录所有执行过的命令
    .emat是单元矩阵文件,记录有限元单元矩阵数据
    .esav是单元数据存储文件,保存单元求解数据
    .err是出错记录文件,记录所有运行中的警告错误信息
    .rst是结果文件,记录一般结构分析的结果数据
    .rth是结果文件,记录一般热分析的结果数据
    .rmg是结果文件,记录一般磁场分析的结果数据
    .snn是载荷步文件,记录载荷步的载荷信息.out是输出文件,记录命令执行情况
    声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
    找专业防水队做完还漏水怎么维权 法院会受理房屋漏水造成的纠纷吗? 巴西龟最长活多久,家养!!! 养胃的药最好的是什么啊 婴儿积食发烧不愿吃药怎么办 板门穴位在哪个部位 手机设置放偷看的方法? 凝结水回收器生产厂家? 个人账户养老金预测公式:现有5万元,缴费20年,能领多少钱? 临沂比较有名的男装品牌 买vivoZ1手机怎么样,感觉怎么样,可以吗?用着好吗? ansys中 al和blc4命令产生的面有什么区别? 求英雄联盟游戏名字五个人一起改,不要非主流不要太多符号,唯美霸气一点都可以。 1+手机质量如何? ansys中的实常数是什么?具体有什么意义,谢谢。 1+手机怎么样? 弄个带有历史名字的 游戏名,吊炸天 英文中aim的用法 一加手机到底怎么样?有用过的朋友能详细说一下不 谁帮我想个游戏名字,霸气一点的 求六个字男生霸气游戏名字 !吊点的 像“农夫三拳有点疼”这样狂拽酷炫吊炸天的游戏名字还有什么? 暑假安全告家长书的家长意见或建议怎么写 求逗比游戏名 6字以下 要求逗比 骚气 吊炸天的 家长怎么回复学校安全告家长书 有什么游戏名字一听就是女又很吊 关于学生上放学接送及相关安全告家长书回执怎么填写 求一个高端洋气上档次和狂拽霸酷吊炸天的游戏名 带雷字的三个字的游戏名字 屌一点的 学校下发交通安全告家长书,家长建议怎么写 小米1手机好用吗 请推荐一下系统动力学相关的仿真软件,侧重于数量预测的 宽透明胶带粘在铁大门上怎么才能弄下来? 1+手机好吗 门上的透明胶带痕迹怎么去除 破产重组后股票还有效吗? ANSYS中,ADD、GLUE和MERGE命令的作用及其它们的应用场合分别是什么? 帖纸烤漆门上粘透明胶带对门有影响吗 购买破产公司100%股权有什么用? ANSYS命令流中的!*符号表示什么意思? 如果股份公司倒闭的话,那么我们当初买该公司的股票,结果会怎样? 有线麦克风是什么 忘记是最好的理由吗``? ansys中anmode是什么意思 大家来说说1+手机好不好用 公司倒闭了股权被个人收买,和原来签的合同还有效吗? 有线话筒什么品牌的好 为什么我刚刚想说的话,突然就忘记了 有什么方法可以知道房门曾经被打开过? ansys中的如下命令:r,10 real,10 mp,mu,2,0.2 是啥意思 谢谢