<filename>case_drifting/packing.py<gh_stars>1-10
"""
Copyright 2021 <NAME>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import os
dir = os.path.abspath(__file__)
dir = os.path.dirname(dir)
print("Run Python script in "+dir+"...")
os.chdir(dir)

import sys
sys.path.append('..')

from pythonModule.packingCloud import *


def main():
    diameter = 0.0002
    nParticles = 5000
    # box = packingBox([0., 0., 0.], [0.5, 0.2, 0.8])
    box = packingBox([0.0, 0.0, 0], [1e-32, 1e-32, 1e-32])
    cloud = packingCloud(box)
    cloud.generateParcels(diameter, nParticles)
    cloud.writeKinematicCloudPositions()


if __name__ == "__main__":
    main()

<filename>case_drifting/packing.py<gh_stars>1-10
"""
Copyright 2021 <NAME>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import os
dir = os.path.abspath(__file__)
dir = os.path.dirname(dir)
print("Run Python script in "+dir+"...")
os.chdir(dir)

import sys
sys.path.append('..')

from pythonModule.packingCloud import *


def main():
    diameter = 0.0002
    nParticles = 5000
    # box = packingBox([0., 0., 0.], [0.5, 0.2, 0.8])
    box = packingBox([0.0, 0.0, 0], [1e-32, 1e-32, 1e-32])
    cloud = packingCloud(box)
    cloud.generateParcels(diameter, nParticles)
    cloud.writeKinematicCloudPositions()


if __name__ == "__main__":
    main()

Copyright 2021 <NAME>  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at       https://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. # box = packingBox([0., 0., 0.], [0.5, 0.2, 0.8])