add the following to the bashrc file
- Add the following line to the bashrc
export KOKKOS_INSTALL_DIR=/home/dinesh/post_doc/softwares/kokkos/build/install
- Execute the following in the terminal
| # trace generated using paraview version 5.11.1 | |
| #import paraview | |
| #paraview.compatibility.major = 5 | |
| #paraview.compatibility.minor = 11 | |
| #### import the simple module from the paraview | |
| from paraview.simple import * | |
| import os, sys | |
| #### disable automatic camera reset on 'Show' |
| /**************************************************************************** | |
| * Copyright (c) 2018-2022 by the Cabana authors * | |
| * All rights reserved. * | |
| * * | |
| * This file is part of the Cabana library. Cabana is distributed under a * | |
| * BSD 3-clause license. For the licensing terms see the LICENSE file in * | |
| * the top-level directory. * | |
| * * | |
| * SPDX-License-Identifier: BSD-3-Clause * | |
| ****************************************************************************/ |
| ffmpeg -framerate 10 -pattern_type glob -i '*.png' -vcodec libx264 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -r 24 -y -an video.mp4 |
| /**************************************************************************** | |
| * Copyright (c) 2018-2022 by the Cabana authors * | |
| * All rights reserved. * | |
| * * | |
| * This file is part of the Cabana library. Cabana is distributed under a * | |
| * BSD 3-clause license. For the licensing terms see the LICENSE file in * | |
| * the top-level directory. * | |
| * * | |
| * SPDX-License-Identifier: BSD-3-Clause * | |
| ****************************************************************************/ |
| \section{The SPH method} | |
| \label{sec:sph} | |
| Smoothed particle hydrodynamics starts with representing a function at a point | |
| as an integral by taking a convolution with the Dirac delta function, | |
| % | |
| \begin{equation} | |
| \label{eq:func:approx} | |
| f(\ten{x}) = \int_{V} f(\ten{y}) \delta(\ten{x} - \ten{y}) d\ten{y} | |
| \end{equation} | |
| % |
| rsync -arv --exclude={_output,target/,.vtk,_output,target/,.pyc,.o,.c,.cpp,~,.so,.orig,.npz,.log,.npz,.pyd,test.pyx,.egg-info/,build/,dist/,.tox/,.out,*_output,cpp,emacs,softwares,papers} ~/phd/ dinesh@10.101.62.141:~/phd/ |
| # don't put duplicate lines or lines starting with space in the history. | |
| # See bash(1) for more options | |
| HISTCONTROL=ignoreboth | |
| # append to the history file, don't overwrite it | |
| shopt -s histappend | |
| # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
| HISTSIZE=1000 | |
| HISTFILESIZE=2000 |
| # deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted | |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. | |
| deb ftp://ftp.iitb.ac.in/distributions/ubuntu/archives/ xenial main restricted | |
| deb-src ftp://ftp.iitb.ac.in/distributions/ubuntu/archives/ xenial universe multiverse restricted main | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb ftp://ftp.iitb.ac.in/distributions/ubuntu/archives/ xenial-updates main restricted |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| class CubicKernel: | |
| def __init__(self, dim): | |
| self.dim = dim | |
| if dim == 1: | |
| self.sigma = 2. / 3. | |
| elif dim == 1: |