实例介绍
( Doyub Kim Fluid Engine Development.pdf ) Doyub Kim Fluid Engine Development.pdf
Taylor francis Taylor Francis Group http://taylorandfrancis.com T& F Cat #K25519K25519C000— page l-10/21/2016-17:12 LUID ENGINE DEVELOPMENT DOYUB KIM (CRC CRC Press Taylor & fi Boca raton london new york CRC Press is an imprint of the Taylor francis Group, an informa business AN AK PETERS BOOK T& F Cat #K25519—K25519C000- page l-10/21/2016—17:12 CRC Press Taylor Francis Group 6000 Broken Sound parkway nw, suite 300 Boca Raton, FL 33487-274 @2017 by Taylor Francis Group, LLC CRC Press is an imprint of Taylor Francis Group, an Informa business No clain lo original U.S. Government works Printed on acid-free paper Version date: 20161019 International Standard book Number -13: 978-1-4987-1992-6(Pack- Book and ebook) This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validily of all materials or the consequences of their use. The authors and publisher have attempted to trace the copyright holders of all material reproduced in this publication and apologize to c ht holders if permission to publish in this form has not been obtained If any co cht m aterial h not been acknowledged please write and let us know so we may rectify in any future reprint Except as permitted under U.S. Copyright L aw, no part of this book may be reprinted, reproduced, transmit ted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information storage or retrieval system, without written permission from t blish Torpermissiontophotocopyorusematerialelectronicallyfromthisworkpleaseaccesswww.copyright com(http://www.copyright.com/)orcontacttheCopyrightClearanceceNter,inC.(ccc),222Rosewood Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For organizations that have been granted a photocopy license by the CCC, a separate system of payment has been arranged. Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for identification and explanation without intent to infringe Library of Congress Cataloging-in-Publication Data Names: Kim, Doyub, author. Title: Fluid engine development/Doyub Kim Description: Boca Raton: Taylor Francis, a CRC title, part of the Taylor Francis imprint, a member of the taylor Francis group the academic division of T&F Informa, plc, [2017] Includes bibliographical references nd ind Identifiers: LCCN 2016028981 ISBN 9781498719926(hardback: acid-free paper Subjects: LCSH: Hydrodynam ata processing. Fluids--Computer simulatic Classilication: LCC QA911 K485 2017 DDC 532.00285, 66--dc23 Lcrecordavailableathttps://icCn.loc.sov/2016028981 Visit the Taylor& Francis Web http://www.taylorandfrancis.com and the Crc Press Web site at http!/www.crcp T&FCat#K25519K25519000— page iv-10/21/2016—17:12 To my wife T& F Cat #K25519K25519C000— page v-10/21/2016-1712 Taylor francis Taylor Francis Group http://taylorandfrancis.com T& F Cat #K25519K25519C000— page l-10/21/2016-17:12 Contents Presa List of Figures lI 1 Basics 1.1 Hello. Fluid Si nIdulator 1.1.1 Defining State 1.1.2 Computing Motion 1. 1.3 Boundary handling 11.4 Visualization 1113462 1.1.5 Final Rcsult 1.2 How to read This book 12 1.2.1 Getting the Codes 13 1.2.2 Rcading codcs 13 1. 2.2. 1 Languages 13 1.2.2.2 Source code st 13 1.2.2.3 Naming Conventions 14 1.2.2.4 Constants 15 1.2.2.5 Array 15 1.2.3 Reading math Expressions 0 1.2.3.1 Scalar. Vector and Matrix 20 1.3 Math 1.3. 1 Coordinate System 21 1.3.2 Vector 21 1.3.2.1 Basic Operations 24 1.3.2.2 Dot and cross product 26 1.3.2.3 More Operations 27 3.3 Matri 1.3.3.1 Basic Matrix Operations 1.3.3.2 Sparse Matrix 36 1.3.4 System of Linear Equations 37 1.3.4.1 Direct Methods 1.3.4.2 Indirect Methods 38 1. 3.5 Field 42 1.3.5.1 Partial derivative 45 1.3.5.2 Gradient T&FCat#K25519—K25519C000— page vll-10/21/2016-17:12 Contents 1.3.5.3 Divergence 48 1.3.54C 51 1.3.5.5 Laplacian 53 1.3.6 Interpolation 56 1.3.6.1 Nearest point 58 1.3.6.2 Linear Interpolation 59 1.3.6.3 Cat, mull-Rom Spline Interpolation 61 eometry 63 1. 4.1 Surface 67 1.4.3 Implicit Surface to Explicit Surface 1.4.4 Explicit Surface to Implicit Surface 1.5 Animation 番普 72 1.6 Physics-Based Animation 1.6.1 Getting Started 77 1.6. 2 Physics Animation with Example 78 1.6.2. 1 Choosing a Model 78 1. 6. 2.2 Simulation State 79 1.6.2.3 Force and Motion 80 1.6.2. 4 Time Integration 87 1.6. 2.5 Constraints and collisions 89 1.7 Fluid Animation 91 1.7.1 Gravity 1.7.2P 1.7.3 Viscosity 1.7.4 Density Constraint 2 Particle-Based Simulation 99 2.1 Seeing the World Like Seurat 99 2 Data Structi 2.2.1 Particle System Data 100 2.2.2 Particle System Example 2.2.3 Neighbor 108 2.2.3.1 Searching Nearby Particles l09 2.2.3.2 Caching Neighbors 2.3 SOothed Particles 116 asics 2.3.1.1 Kernel 117 2.3.1.2 Data Model 119 lerdO 120 2.3.1.4 Density 121 2.3.1.5 Differential Operators 2.3.2 Dynamics 130 2.3.2. 1 Solver Over view 131 2.3.2.2 Pressure gradient Force 133 T&FCa#K25519—K25519C000— page vil-10/21/2016—17:12 Contents 2.3.2.3 Viscosity 137 2.3.2.4 Gravity and Drag Forces 137 2.3.3 Results and limitations 138 2.4 Incompressible SPii with Larger Time-Step 1 2.4 Predict and correct 2.4.2 Implementation 2.4.3 Results 147 2.5 Collision Handling 149 2.5.1 Defining colliders 150 2.6 Discussion and further reading 155 3 Grid-Based simulation 157 3.1 Pixelating the World 157 3. 2 Data Structures 157 3.2.1 Types of grid 159 3.2.2 Grid System D 166 3.3 Differential Operators 169 3.3.1 Finite difference 170 3.3.2 Gradient 172 3.3. 3 Divergence 173 3.3.4 Curl 176 3.3.5 Lap 178 3. 4 Fluid simulation 180 3.4.1 Collision Handling 182 3.4.1.1 Collider to Signed-Distance Field 182 3.4.1.2 Boundary Conditions 183 3.4.2 Advection 187 3.4.2.1 Semi-Lagrangian Method 188 3.4.2.2I ng Back g Accurac 192 3.4.2.3 Improving Interpolation Accuracy 194 3.4.2.4 Boundary handling g 196 3.43G 198 3.4.4. 1 Solving Diffusion with Forward Euler 199 3.4.4.2 Stability of diffu usIon Sol 201 3.4.4.3 Solving DiffusiOn with Backward Euler 203 3.4.4.4 Boundary Handling 208 3.4.5 Pressure and Incompressibility 211 3.4.5. 1 Building matrix 214 3.5 Smoke simulation 220 3.5.1 Buoyancy Force 222 3.5.2 Advection and Diffusioll 3.6 Fluid with Surface 223 3.6.1 Defining surfacc on grids 23 3.6.1.1 Tracking the Surface under the Flow 26 3.6.1.2 Reinitializing Signed-Distance Field 226 T&FCat#K25519—K25519C000— page ix-10/21/2016—17:12 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论