##############################################################################
# This file is a part of PFFDTD.
#
# PFFTD is released under the MIT License.
# For details see the LICENSE file.
#
# Copyright 2021 <NAME>.
#
# File name: test_script_MV_fcc_viz.py
#
# Description: this shows a simple setup with FCC scheme, for visualization purposes
#
##############################################################################
from sim_setup import sim_setup

sim_setup(
    model_json_file='../data/models/Musikverein_ConcertHall/model_export.json',
    mat_folder='../data/materials',
    source_num=3,
    insig_type='dhann30',
    diff_source=False,
    mat_files_dict={
                    'Floor': 'mv_floor.h5',
                    'Chairs' : 'mv_chairs.h5',
                    'Plasterboard': 'mv_plasterboard.h5',
                    'Window': 'mv_window.h5',
                    'Wood': 'mv_wood.h5',
                    }, #see build_mats.py to set these material impedances from absorption data
    duration=0.1,
    Tc=20,
    rh=50,
    fcc_flag=True,
    PPW=5.6, #for 2% phase velocity error at fmax
    fmax=1000.0,
    save_folder='../data/sim_data/mv_fcc/viz',
    compress=0,
    draw_vox=True,
    draw_backend='polyscope', #will draw 'voxelization' with polyscope (in which small white spheres denote rigid boundary nodes)
)

#then run with python and 3D visualization:
#   python3 -m fdtd.sim_fdtd --data_dir='../data/sim_data/mv_fcc/viz' --plot --draw_backend='mayavi' --json_model='../data/models/Musikverein_ConcertHall/model_export.json'

##############################################################################
# This file is a part of PFFDTD.
#
# PFFTD is released under the MIT License.
# For details see the LICENSE file.
#
# Copyright 2021 <NAME>.
#
# File name: test_script_MV_fcc_viz.py
#
# Description: this shows a simple setup with FCC scheme, for visualization purposes
#
##############################################################################
from sim_setup import sim_setup

sim_setup(
    model_json_file='../data/models/Musikverein_ConcertHall/model_export.json',
    mat_folder='../data/materials',
    source_num=3,
    insig_type='dhann30',
    diff_source=False,
    mat_files_dict={
                    'Floor': 'mv_floor.h5',
                    'Chairs' : 'mv_chairs.h5',
                    'Plasterboard': 'mv_plasterboard.h5',
                    'Window': 'mv_window.h5',
                    'Wood': 'mv_wood.h5',
                    }, #see build_mats.py to set these material impedances from absorption data
    duration=0.1,
    Tc=20,
    rh=50,
    fcc_flag=True,
    PPW=5.6, #for 2% phase velocity error at fmax
    fmax=1000.0,
    save_folder='../data/sim_data/mv_fcc/viz',
    compress=0,
    draw_vox=True,
    draw_backend='polyscope', #will draw 'voxelization' with polyscope (in which small white spheres denote rigid boundary nodes)
)

#then run with python and 3D visualization:
#   python3 -m fdtd.sim_fdtd --data_dir='../data/sim_data/mv_fcc/viz' --plot --draw_backend='mayavi' --json_model='../data/models/Musikverein_ConcertHall/model_export.json'

############################################################################## # This file is a part of PFFDTD. # # PFFTD is released under the MIT License. # For details see the LICENSE file. # # Copyright 2021 <NAME>. # # File name: test_script_MV_fcc_viz.py # # Description: this shows a simple setup with FCC scheme, for visualization purposes # ############################################################################## #see build_mats.py to set these material impedances from absorption data #for 2% phase velocity error at fmax #will draw 'voxelization' with polyscope (in which small white spheres denote rigid boundary nodes) #then run with python and 3D visualization: #   python3 -m fdtd.sim_fdtd --data_dir='../data/sim_data/mv_fcc/viz' --plot --draw_backend='mayavi' --json_model='../data/models/Musikverein_ConcertHall/model_export.json'