#!/usr/bin/env python

# This code was adapted from http://sfepy.org/doc-devel/mat_optim.html.

from __future__ import print_function
from __future__ import absolute_import
import sys
sys.path.append('.')

import matplotlib as mlp
import matplotlib.pyplot as plt
from matplotlib.collections import PolyCollection
from mpl_toolkits.mplot3d.art3d import Poly3DCollection, Line3DCollection

import numpy as np

from sfepy.base.base import Struct, output
from sfepy.base.log import Log
from sfepy import data_dir

class MaterialSimulator(object):

    @staticmethod
    def create_app(filename, is_homog=False, **kwargs):
        from sfepy.base.conf import ProblemConf, get_standard_keywords
        from sfepy.homogenization.homogen_app import HomogenizationApp
        from sfepy.applications import PDESolverApp

        required, other = 
get_standard_keywords()