Skip to content
  • U*sin(t)边界条件

    OpenFOAM
    20
    0 赞同
    20 帖子
    31k 浏览
    I

    @李东岳 在 U*sin(t)边界条件 中说:

    我刚开始学OpenFOAM,我没在用户手册里看到怎么样把速度的边界条件设成time dependent的,比如我要wall velocity 是U*sin(t),这个样子的?能麻烦你告诉我一下实现这个的函数吗?

    inlet { type codedFixedValue; name dummy; code #{ const scalar& time = this->db().time().value(); operator==(vector(2.0*sin(time),0,0)); #}; value $internalField; }

    请参考

    李老师您好,我看过您在另一个帖子提到的“合理调节上部来流速度使浮升气泡保持在一个相对静止的位置”后,我想复现您说的内容,即:求解域的速度进口的速度大小根据上一个时间步的气泡速度自动调节。目前的思路是:采用function在算例文件夹下写出一个气泡速度Ub,再在0/U中采用include将气泡速度Ub引入边界条件中进行操作。但在实际操作过程中发现,include只会在计算第一步加载,并不会在每一个时间步后加载,导致速度进口大小并未实现自动调节。请问李老师您有没有好的思路可以实现边界条件的实时加载和自动调节哇:xinxin:

  • 0 赞同
    1 帖子
    2k 浏览
    小狗狗

    需要处理滑移交界面,metis可以对分块非结构网格进行划分吗?交界面处的网格分区会是什么情况?比如局部交界面两侧的网格会划分为同一并行区域,还是两侧网格属于不同并行区域?

  • 网格与圆管层流

    Meshy
    17
    0 赞同
    17 帖子
    22k 浏览
    winsway_zeroW

    @东岳 谢谢东岳老师哈

  • OpenFOAM源代码解析问题

    OpenFOAM
    6
    0 赞同
    6 帖子
    7k 浏览
    李东岳

    @赵海盛 :high: :high: :high:

  • 并行计算入门求解

    Algorithm
    6
    0 赞同
    6 帖子
    11k 浏览
    Q

    @Kingkong 搜如下教材

    高性能计算并行编程技术_MPI并行程序设计_[都志辉]:非常适合入门
    Using MPI :结合上一个教材一起看
    Iterative Methods for Sparse Linear Systems [ Yousef Saad ] :介绍 deomain decomposition 的数学理论

  • 涡致振动的问题

    Algorithm
    5
    0 赞同
    5 帖子
    9k 浏览
    W

    @赵一铭 目前想通过现有商业软件做一做···openfoam有点难,项目要求又很急····

  • 求一个win10可用的ANSYS下载地址

    Fluent
    21
    0 赞同
    21 帖子
    35k 浏览
    P

    @东岳 按照教程安装ansys 17.2 后,fluent可以正常打开,但是单独打开OCEM时,报如下错误:

    ICEM_ACN is "/opt/ansys_inc/v172/icemcfd/linux64_amd". Hallo root. ANSYSLIC_DIR is set to /opt/ansys_inc/shared_files/licensing LD_LIBRARY_PATH is "/opt/ansys_inc/v172/icemcfd/linux64_amd/lib:/opt/ansys_inc/v172/icemcfd/linux64_amd/bin:/opt/ansys_inc/v172/icemcfd/linux64_amd/dif/iges:/opt/ansys_inc/v172/icemcfd/linux64_amd/../../Framework/bin/Linux64". args = libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast Window information: depth = 24 class = 4 visual depth = 24 class = 4 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 4785 Current serial number in output stream: 4789 Exit from ICEM CFD

    我的机子没有独显,用的是集显,会是这个原因吗,还请各位大神帮忙解答一下。

  • 做个公式记录

    CFD彩虹条
    5
    0 赞同
    5 帖子
    10k 浏览
    李东岳

    \begin{equation}
    \frac{{\p \left( {{\alpha_k }{\rho_k}{\bfU_k }} \right)}}{{\p t}} + \nabla \cdot \left( {{\alpha_k}{\rho_k } {{\bfU_k} {\bfU_k}} } \right) - \nabla \cdot \left( {{\alpha_k}{ \rho_k}{\tau_k}} \right)
    = - {\alpha_k} \nabla p_k + {\alpha_k}{\rho_k} \bfg + \sum {\bfM_{ij}},
    \end{equation}

    \begin{equation}
    \frac{{\p \left( {{\alpha_k }{\rho_k}{ }} \right)}}{{\p t}} + \nabla \cdot \left( {{\alpha_k}{\rho_k } { {\bfU_k}} } \right) =0
    \end{equation}

    \begin{equation}
    \nabla \cdot \left( {{\alpha_k}{\rho_k } { {\bfU_k}} } \right) =0
    \end{equation}

    \begin{equation}
    \sum {{\alpha_k}{\rho_k } { {\bfU_k}} }\cdot\bfS_f =0
    \end{equation}

    \begin{equation}
    \tau_k=-\nu_\mathrm{k,eff}\left(\nabla \bfU_k+\nabla^\rT \bfU_k\right)+\frac{2}{3}\nu_\mathrm{k,eff}\nabla \cdot \left(\bfU_k \cdot\bfI\right),
    \label{taud}
    \end{equation}

    \begin{equation}
    \bfM_{\mathrm{drag}}=\frac{3}{4}\alpha_k\rho_\rc C_\rD\frac{1}{d_k} \left|\bfU_\rc-\bfU_k\right| \left(\bfU_\rc-\bfU_k\right),
    \end{equation}

    \begin{equation}
    Re=\frac{d_k|\bfU_k-\bfU_\rc|}{\nu_\rc}
    \end{equation}

    \begin{equation}
    \bfM_\lift=\alpha_\rd C_\rL\rho_\rc\bfU_\rr\times\left(\nabla\times\bfU_\rc\right),
    \end{equation}

    \begin{equation}
    \bfM_\wall=C_\wall\rho_\rc\alpha_k|\bfU_\rc-\bfU_k|^2\cdot\bfn
    \end{equation}

    \begin{equation}
    \bfM_\turb=C_\rT\rho_\rc k_\rc\nabla\alpha_\rd,
    \end{equation}

    \begin{equation}\label{m1}
    \frac{{\p \left( {{\alpha_k }{\rho_k }{\bfU_k}} \right)}}{{\p t}} + \nabla \cdot \left( {{\alpha_k}{\rho_k} {{\bfU_k} {\bfU_k}} } \right) - \nabla \cdot \left( {{\alpha_\rd}{ \rho_\rd}{\tau_\rd}} \right)
    = -\Kd_k\bfU_k+\bfM_{\lift,k}+\bfM_{\turb,k}+\bfM_{\wall,k},
    \end{equation}

    \begin{equation}\label{Kd}
    \Kd=\frac{3}{4}\alpha_k\rho_\rc C_{\rD,k}\frac{1}{d_k} \left|\bfU_\rc-\bfU_k\right|.
    \end{equation}

    \begin{equation}
    {A_{k,\mathrm{P}}}\mathbf{U}_{k,\mathrm{P}}{\rm{ + }}\sum {A_{k,\mathrm{N}}\mathbf{U}_{k,\mathrm{N}}} = S_{k,\mathrm{P}},
    \label{apanmomrd}
    \end{equation}

    \begin{equation}
    \mathbf{HbyA}_{k,\mathrm{P}} = \frac{1}{{{A_{k,\mathrm{P}}}}}\left( { - \sum {{A_{k,\mathrm{N}}}\mathbf{U}_{k,\mathrm{N}}} + S_{k,\mathrm{P}}} \right),
    \label{hbyad}
    \end{equation}

    \begin{equation}
    \bfU_{k,\rP} = \bfHbyA_{k,\rP}+\frac{\alpha_{k,\rP}}{A_{k,\rP}}\left(\nabla p_{\mathrm{rgh},\rP}-\alpha_{\rc,\rP}\left(\rho_\rc-\rho_k\right)\bfg-\bfg\cdot\bfh_\rP\nabla\rho_\rP\right)+\frac{\Kd_k}{A_{k,\rP}}\bfU_{\rc,\rP},
    \label{hbyad2}
    \end{equation}

    \begin{equation}\label{incompressiblep}
    \sum\alpha_{k,f}\phi_{k}+\alpha_{\rc,f}\phi_{\rc}=\nabla\cdot\left(\left(\sum\alpha_{k,\rP}\frac{\alpha_{k,\rP}}{A_{k,\rP}}+\alpha_{\rc,\rP}\frac{\alpha_{\rc,\rP}}{A_{\rc,\rP}}
    \right)\nabla p_{\mathrm{rgh},\rP}\right),
    \end{equation}

    \begin{equation}
    \phi_{k}=\left(\bfHbyA_{k,f}+\frac{\alpha_{k,f}}{A_{k,f}}\left(-\alpha_{\rc,f}\left(\rho_\rc-\rho_\rd\right)\bfg-\bfg\cdot\bfh_f\nabla\rho_f\right)+\frac{\Kd_f}{A_{k,f}}\bfU_{\rc,f}\right)\cdot\bfS_f
    \end{equation}

    \begin{equation}
    \phi_{\rc}=\left(\bfHbyA_{\rc,f}+\frac{\alpha_{\rc,f}}{A_{\rc,f}}\left(-\alpha_{\rd,f}\left(\rho_\rd-\rho_\rc\right)\bfg-\bfg\cdot\bfh_f\nabla\rho_f\right)+\frac{\Kd_f}{A_{\rc,f}}\bfU_{\rd,f}\right)\cdot\bfS_f
    \end{equation}

  • 英语记录

    CFD彩虹条
    1
    0 赞同
    1 帖子
    2k 浏览
    李东岳

    I want to keep my bike close by, so I can fix it

    I want to take off (remove) the bike wheel

    Allen key

    It doesn't fit

    Move over, scoot over, can I get passed, please

    She likes more and more like me everyday

    I rarely (don't often) watch TV

    Why did you set the temperature to 20 degrees

    Dont rush me

    I want to get rid of the extra oil

    I can take some, I will finish what's left

    She has a loose tooth, and its goin to fall out

    She is not fully awake, she is a bit groggy

    She is the one who loves me the most, she loves me the most

    Put on the striped onesie

    Move forwards and backwards

    Her ton nail is broken

    This is her first time seeing it

    This drink is non-alcoholic, you can have a sip

    Take a big step forward

    A loose thread

    Lift my leg and put it down

    Stick out your tongue

    She is lying on her side

    I did it all in one go

    Do you mind if I add her to our chat?

    Please comment on the sentences above

    Look at the lines on your arm. You leaned against something, that left lines on your arm.

    Pull the handle to open the wardrobe

    She just wants to be held up one your shoulder, she just wants to be held close to your chest

    I am afraid of the dark

    When she is sleeping, how does she know who is beside her

    She does not care about anything, she is not easily bothered by things, she has high tolerance. I have a high pain tolerance.

    If someone's ideas can be easily influenced by others,

    She does not want to lean back

    Give yourself a round of applause

    Candy wrapper

    I am meshing the pataya???

    Are u scared of mosquitoes biting you?

    Do you hear me calling you?

    Another spoonful

    How about I weigh you?

  • 0 赞同
    3 帖子
    4k 浏览
    李东岳

    :146: :146: :146:

  • rhoSimpleFoam:k-epsion 湍流Pr数

    OpenFOAM
    21
    0 赞同
    21 帖子
    24k 浏览
    E

    @cccrrryyy 编译solver的时候直接报错,显示没定义

  • SIMPLE 算法中密度如何求解?

    Algorithm
    7
    0 赞同
    7 帖子
    13k 浏览

    @李东岳已经非常感谢了,我再继续努努力吧!:expressionless:

  • 今天公众号推送的三厢车雨刮器问题

    Fluent
    4
    0 赞同
    4 帖子
    6k 浏览
    L

    有一个东西 我知道 就叫做真空吸尘器
    实在看不出真空的论点在哪里

  • 0 赞同
    17 帖子
    21k 浏览
    C

    @李东岳 HPC的节点分配逻辑可以自定义,但确实最通用的就是优先占满某个节点。至少在工业场景下,比如我们是好几个应用都在集群上跑,那OpenFOAM这边我只要保证多节点不比单节点慢就很理想了。比单节点还快是加分项,但不是必须项。

    或者可以设置为在集群比较空的情况下,优先采用多节点少核心的方式,但“集群比较空”在实际使用场景中基本不存在,能排上队就不错了。

    如果是学术那肯定不一样,确实如李老师所说,光是并行加速这一块好好的研究下就可以发sci了。:chouchou:

  • 发现一个网站实时更新sci-hub

    CFD彩虹条
    2
    0 赞同
    2 帖子
    3k 浏览
    李东岳

    好东西好东西!!

  • 0 赞同
    10 帖子
    12k 浏览
    waltenW

    @东岳
    不不不,您才是大佬,我是仰慕小菜鸡:xiexie:

  • ICEM边界层网格问题

    Meshy
    2
    0 赞同
    2 帖子
    4k 浏览

    @悟空空 图片[6NEU$Q]_ID_9SL@`1VDIPI.png

  • 有关压力速度耦合算法的文章

    Algorithm
    2
    0 赞同
    2 帖子
    4k 浏览
    W

    @李东岳 coupled solver比segregated solver能更快收敛,但在处理复杂几何形状物体时不太容易收敛[1]。

    [1] http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2012/KlasJareteg/KlasJareteg-OF2012-Project-3-Version-2.0.pdf

  • 0 赞同
    5 帖子
    9k 浏览
    书生kao

    应该不会吧,我之前用的dell工作站,CPU是e5-2697v3,双路,windows系统,开了超线程,两颗CPU都可以调用,

  • 0 赞同
    3 帖子
    3k 浏览
    Y

    谢谢东岳老师