a method for generating and evaluating a table model for circuit simulation in n dimensions employing mathematical expressions for modeling a device . the table model uses an unstructured n - dimensional grid for approximating the expressions . the method includes the steps of : establishing a function domain having boundary limits in the n dimensions ; performing an accuracy partitioning operation to establish accuracy partitions ; the mathematical expressions being satisfied within each accuracy partition within a predetermined error criteria ; performing a continuity partitioning operation to establish continuity partitions ensuring continuity of solutions of the mathematical expressions across boundaries separating adjacent accuracy partitions ; performing a grid refining operation to configure the continuity partitions to assure monotonic solutions of the mathematical expressions in the continuity partitions ; if a continuity partition is altered during the grid refining operation , returning to step , else proceeding to next step ; ending the method .