<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://fluid.colorado.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jopo9795</id>
		<title>PHASTA Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://fluid.colorado.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jopo9795"/>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php/Special:Contributions/Jopo9795"/>
		<updated>2026-05-10T02:43:16Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1769</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1769"/>
				<updated>2022-03-18T01:10:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Post-Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;br /&gt;
&lt;br /&gt;
Below is an example of the input script for the current version of the code. Capability is included for handling multi-species flows up to number of species ''nsp'' equal to 5. This feature has been tested and shown to work for five species mass conservation equations at one time. However, when chemical species production governed by the finite-rate chemistry module is active, the solution becomes unstable. Additional work on this feature is needed. &lt;br /&gt;
&lt;br /&gt;
=== Example of solver.inp file: ===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# PHASTA_HYP Version 1 Input File&lt;br /&gt;
&lt;br /&gt;
#SOLUTION CONTROL &lt;br /&gt;
#{                &lt;br /&gt;
     Equation of State: Compressible&lt;br /&gt;
     Number of Timesteps: 100  &lt;br /&gt;
     Time Step Size: 3.2339656949004e-08&lt;br /&gt;
&lt;br /&gt;
     Limit Density: 0 0.01 0.1         # solution limiting on variables [switch, min, max]&lt;br /&gt;
     Limit u1: 0 0. 2.8e3&lt;br /&gt;
     Limit u2: 0 0 0&lt;br /&gt;
     Limit u3: 0 0 0&lt;br /&gt;
     Limit Temperature: 0 230 3500     # also limits vibrational temperature&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#OUTPUT CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Number of Timesteps between Restarts: 250   &lt;br /&gt;
     Print Error Indicators: True                   # shock error stored in column 6, DC factor \nu stored in column 10&lt;br /&gt;
     Error Indicator Threshold: 0.01                # err &amp;gt; thresh*err_max is flagged as 1 (i.e. identified for refinement)&lt;br /&gt;
                                                    #   --&amp;gt; smaller values = narrower flagged region along shock&lt;br /&gt;
     Number of Error Smoothing Iterations: 0        # ierrsmooth&lt;br /&gt;
     Load and set 3D IC: False                      # load the flowfield from a file as the initial condition&lt;br /&gt;
     Position Tolerance on IC Load: 1e-7            # sets the tolerance for matching node locations while loading the initial condition&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#MATERIAL CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Viscosity: 1.95508431704028e-5                 # dynamic viscosity (only used if nsp.eq.99 for air mixture)&lt;br /&gt;
     Thermal Conductivity: 26.6843390135759e-3      # only used if nsp.eq.99 for air mixture&lt;br /&gt;
     Viscous Control: None    #Viscous   #None      &lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#REACTING FLOW&lt;br /&gt;
#{&lt;br /&gt;
     Number of species: 1               # nsp&lt;br /&gt;
#.......currently only allowing 1&amp;lt;=nsp&amp;lt;=5. &lt;br /&gt;
#.........and make sure scalars passed from simmodeler are in correct slots&lt;br /&gt;
#&lt;br /&gt;
     Species IDs: 1             # specIDs, length of array must equal&lt;br /&gt;
                                        #    nsp (IDs numbered in order:&lt;br /&gt;
                                        #            N2,O2,NO,N,O&lt;br /&gt;
                                        #   ID:99 for Air molecule&lt;br /&gt;
     # e.g. Species IDs: 1 3      &amp;lt;&amp;lt;&amp;lt; would give N2 and NO&lt;br /&gt;
     Ref Entropy Conditions: 1e3 230 230 0   #[P0,T0,T0vib,S0]&lt;br /&gt;
     Ref Entropy Mole Frac: 1 0 0 0 0   # composition of gas used as reference entropy condition&lt;br /&gt;
                                        #  &amp;gt;&amp;gt; must sum to zero&lt;br /&gt;
     Allow reactions: False             # chemical reactions, ichem = 1 if True&lt;br /&gt;
     Chemical heat release: False       # chemical heat release, iqtot = 1 if True&lt;br /&gt;
     Limit on reaction step: 0.00001    # rlim (limits change in species cs per step)&lt;br /&gt;
     Tolerance to global time: 0.01     # ttol, chem solver is advanced in time until time diff &amp;lt; ttol*dt_global&lt;br /&gt;
     Temperature threshold: 500         # Tth (below which, reactions ignored)&lt;br /&gt;
     Reaction solver MIN steps: 5       # nstepmin, minimum number of time steps&lt;br /&gt;
     Reaction solver MAX steps: 100     # nstepmax, maximum number of time steps&lt;br /&gt;
     Two Temperature coefficient: 0.5   # qta (Tvib**qta*T**(1-qta))&lt;br /&gt;
     Exclude vib energy: True           # ivib0 = 1 if True&lt;br /&gt;
     Exclude vib source: True           # ivibS0 = 1 if True&lt;br /&gt;
     Tvib BC Ratio: 1.0			# at any BC with T set, Tvib = tvibBC * T&lt;br /&gt;
     Vibrational Temperature IC: -1     # set negative value to force Tvib = T, otherwise positive value set as IC value&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#LINEAR SOLVER&lt;br /&gt;
#&lt;br /&gt;
     Solver Type: GMRES sparse      &lt;br /&gt;
     Number of GMRES Sweeps per Solve: 1                       # replaces nGMRES&lt;br /&gt;
     Minimum Number of Iterations per Nonlinear Iteration: 10  # minIters&lt;br /&gt;
     Number of Krylov Vectors per GMRES Sweep: 100	       # replaces Kspace    &lt;br /&gt;
     Tolerance on Momentum Equations: 0.01                     # epstol(1), affects etol for Hessenberg problem&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCRETIZATION CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Weak Form: SUPG 		             # alternate is Galerkin only for compressible&lt;br /&gt;
     Time Integration Rule: First Order      # 1st Order sets rinf(1) -1&lt;br /&gt;
     Tau Matrix: Matrix-Ent-Adv&lt;br /&gt;
     Include Viscous Correction in Stabilization: False    # if p=1 idiff=1&lt;br /&gt;
                                                           # if p=2 idiff=2  &lt;br /&gt;
     Tau Time Constant: 1.0&lt;br /&gt;
     Tau C Scale Factor: 1.0                 # taucfct  best value depends&lt;br /&gt;
     Number of Elements Per Block: 64        #ibksiz&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCONTINUITY CAPTURING&lt;br /&gt;
#{&lt;br /&gt;
     Discontinuity Capturing: DC-quadratic    # Current Options: DC-mallet, DC-minimum, DC-quadratic, DC-yzbeta&lt;br /&gt;
     Multiplier for DC factor: 1              # scales DC variable in e3DC&lt;br /&gt;
     Discontinuity Capturing Scheme: 1        # 0: discontinuous, 1: continuous (L2 projection)&lt;br /&gt;
     Include Source Term in DC: 0             # 1: sets idcSRC to 1&lt;br /&gt;
     Write DCqpt: 0                           # if &amp;gt; 0, writes out data at a quadrature point iDCqpt&lt;br /&gt;
&lt;br /&gt;
#----Parameters for YZBeta DC operator ----&lt;br /&gt;
     Beta Value: 1                       # 1: smoother , 2: sharper, 12: compromise between 1 and 2&lt;br /&gt;
     YZB Farfield Conditions: 1e5 2119 10 10 300 # [Pressure, X-Vel, Y-Vel, Z-Vel, Temperature] &lt;br /&gt;
     YZB Farfield Mole Frac: 1 0 0 0 0   # mole fractions at reference condition&lt;br /&gt;
                                         # [xN2,xO2,xNO,xN,xO] &lt;br /&gt;
                                         # must sum to 1, must be length 5 &lt;br /&gt;
     Include Umod Term: 1                # 0: no, 1: yes&lt;br /&gt;
     Mach Adjustment Bm Value: 1         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Mach Adjustment Bj Value: 6         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Include Time Term in Z: 1           # 0: no, 1: yes&lt;br /&gt;
#------------------------------------------&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#STEP SEQUENCE &lt;br /&gt;
#{&lt;br /&gt;
       Step Construction  : 0 1 0 1&lt;br /&gt;
#}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Post-Processing ==&lt;br /&gt;
&lt;br /&gt;
An example of the ''flow.pht'' file is provided to demonstrate the ordering of the variables that can be viewed in Paraview. Note that both the ''errors'' and ''DCqpt'' fields would need to be output to the restart file for the example below to work. Saving these two fields is controlled through the solver.inp options.&lt;br /&gt;
&lt;br /&gt;
=== Example of flow.pht file ===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;PhastaMetaFile number_of_pieces=&amp;quot;24&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;GeometryFileNamePattern pattern=&amp;quot;24-procs_case/geombc.dat.%d&amp;quot; &lt;br /&gt;
                            has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                            has_time_entry=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;FieldFileNamePattern pattern=&amp;quot;24-procs_case/restart.%d.%d&amp;quot;&lt;br /&gt;
                         has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                         has_time_entry=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;TimeSteps number_of_steps=&amp;quot;1&amp;quot; &lt;br /&gt;
	      auto_generate_indices=&amp;quot;1&amp;quot;&lt;br /&gt;
              start_index=&amp;quot;2010&amp;quot;&lt;br /&gt;
	      increment_index_by=&amp;quot;50&amp;quot;&lt;br /&gt;
              start_value=&amp;quot;0&amp;quot;&lt;br /&gt;
              increment_value_by=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/TimeSteps&amp;gt;&lt;br /&gt;
   &amp;lt;Fields number_of_fields=&amp;quot;9&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;rho_N2&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;0&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;rho_O2&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;1&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;velocity&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;2&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;3&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temp_vib&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;5&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temperature&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;6&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;errors&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;nu&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;9&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;DCqpt&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;DCqpt1&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;0&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/Fields&amp;gt;&lt;br /&gt;
&amp;lt;/PhastaMetaFile&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1768</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1768"/>
				<updated>2022-03-18T01:04:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Simulation Inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;br /&gt;
&lt;br /&gt;
Below is an example of the input script for the current version of the code. Capability is included for handling multi-species flows up to number of species ''nsp'' equal to 5. This feature has been tested and shown to work for five species mass conservation equations at one time. However, when chemical species production governed by the finite-rate chemistry module is active, the solution becomes unstable. Additional work on this feature is needed. &lt;br /&gt;
&lt;br /&gt;
=== Example of solver.inp file: ===&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# PHASTA_HYP Version 1 Input File&lt;br /&gt;
&lt;br /&gt;
#SOLUTION CONTROL &lt;br /&gt;
#{                &lt;br /&gt;
     Equation of State: Compressible&lt;br /&gt;
     Number of Timesteps: 100  &lt;br /&gt;
     Time Step Size: 3.2339656949004e-08&lt;br /&gt;
&lt;br /&gt;
     Limit Density: 0 0.01 0.1         # solution limiting on variables [switch, min, max]&lt;br /&gt;
     Limit u1: 0 0. 2.8e3&lt;br /&gt;
     Limit u2: 0 0 0&lt;br /&gt;
     Limit u3: 0 0 0&lt;br /&gt;
     Limit Temperature: 0 230 3500     # also limits vibrational temperature&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#OUTPUT CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Number of Timesteps between Restarts: 250   &lt;br /&gt;
     Print Error Indicators: True                   # shock error stored in column 6, DC factor \nu stored in column 10&lt;br /&gt;
     Error Indicator Threshold: 0.01                # err &amp;gt; thresh*err_max is flagged as 1 (i.e. identified for refinement)&lt;br /&gt;
                                                    #   --&amp;gt; smaller values = narrower flagged region along shock&lt;br /&gt;
     Number of Error Smoothing Iterations: 0        # ierrsmooth&lt;br /&gt;
     Load and set 3D IC: False                      # load the flowfield from a file as the initial condition&lt;br /&gt;
     Position Tolerance on IC Load: 1e-7            # sets the tolerance for matching node locations while loading the initial condition&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#MATERIAL CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Viscosity: 1.95508431704028e-5                 # dynamic viscosity (only used if nsp.eq.99 for air mixture)&lt;br /&gt;
     Thermal Conductivity: 26.6843390135759e-3      # only used if nsp.eq.99 for air mixture&lt;br /&gt;
     Viscous Control: None    #Viscous   #None      &lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#REACTING FLOW&lt;br /&gt;
#{&lt;br /&gt;
     Number of species: 1               # nsp&lt;br /&gt;
#.......currently only allowing 1&amp;lt;=nsp&amp;lt;=5. &lt;br /&gt;
#.........and make sure scalars passed from simmodeler are in correct slots&lt;br /&gt;
#&lt;br /&gt;
     Species IDs: 1             # specIDs, length of array must equal&lt;br /&gt;
                                        #    nsp (IDs numbered in order:&lt;br /&gt;
                                        #            N2,O2,NO,N,O&lt;br /&gt;
                                        #   ID:99 for Air molecule&lt;br /&gt;
     # e.g. Species IDs: 1 3      &amp;lt;&amp;lt;&amp;lt; would give N2 and NO&lt;br /&gt;
     Ref Entropy Conditions: 1e3 230 230 0   #[P0,T0,T0vib,S0]&lt;br /&gt;
     Ref Entropy Mole Frac: 1 0 0 0 0   # composition of gas used as reference entropy condition&lt;br /&gt;
                                        #  &amp;gt;&amp;gt; must sum to zero&lt;br /&gt;
     Allow reactions: False             # chemical reactions, ichem = 1 if True&lt;br /&gt;
     Chemical heat release: False       # chemical heat release, iqtot = 1 if True&lt;br /&gt;
     Limit on reaction step: 0.00001    # rlim (limits change in species cs per step)&lt;br /&gt;
     Tolerance to global time: 0.01     # ttol, chem solver is advanced in time until time diff &amp;lt; ttol*dt_global&lt;br /&gt;
     Temperature threshold: 500         # Tth (below which, reactions ignored)&lt;br /&gt;
     Reaction solver MIN steps: 5       # nstepmin, minimum number of time steps&lt;br /&gt;
     Reaction solver MAX steps: 100     # nstepmax, maximum number of time steps&lt;br /&gt;
     Two Temperature coefficient: 0.5   # qta (Tvib**qta*T**(1-qta))&lt;br /&gt;
     Exclude vib energy: True           # ivib0 = 1 if True&lt;br /&gt;
     Exclude vib source: True           # ivibS0 = 1 if True&lt;br /&gt;
     Tvib BC Ratio: 1.0			# at any BC with T set, Tvib = tvibBC * T&lt;br /&gt;
     Vibrational Temperature IC: -1     # set negative value to force Tvib = T, otherwise positive value set as IC value&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#LINEAR SOLVER&lt;br /&gt;
#&lt;br /&gt;
     Solver Type: GMRES sparse      &lt;br /&gt;
     Number of GMRES Sweeps per Solve: 1                       # replaces nGMRES&lt;br /&gt;
     Minimum Number of Iterations per Nonlinear Iteration: 10  # minIters&lt;br /&gt;
     Number of Krylov Vectors per GMRES Sweep: 100	       # replaces Kspace    &lt;br /&gt;
     Tolerance on Momentum Equations: 0.01                     # epstol(1), affects etol for Hessenberg problem&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCRETIZATION CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Weak Form: SUPG 		             # alternate is Galerkin only for compressible&lt;br /&gt;
     Time Integration Rule: First Order      # 1st Order sets rinf(1) -1&lt;br /&gt;
     Tau Matrix: Matrix-Ent-Adv&lt;br /&gt;
     Include Viscous Correction in Stabilization: False    # if p=1 idiff=1&lt;br /&gt;
                                                           # if p=2 idiff=2  &lt;br /&gt;
     Tau Time Constant: 1.0&lt;br /&gt;
     Tau C Scale Factor: 1.0                 # taucfct  best value depends&lt;br /&gt;
     Number of Elements Per Block: 64        #ibksiz&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCONTINUITY CAPTURING&lt;br /&gt;
#{&lt;br /&gt;
     Discontinuity Capturing: DC-quadratic    # Current Options: DC-mallet, DC-minimum, DC-quadratic, DC-yzbeta&lt;br /&gt;
     Multiplier for DC factor: 1              # scales DC variable in e3DC&lt;br /&gt;
     Discontinuity Capturing Scheme: 1        # 0: discontinuous, 1: continuous (L2 projection)&lt;br /&gt;
     Include Source Term in DC: 0             # 1: sets idcSRC to 1&lt;br /&gt;
     Write DCqpt: 0                           # if &amp;gt; 0, writes out data at a quadrature point iDCqpt&lt;br /&gt;
&lt;br /&gt;
#----Parameters for YZBeta DC operator ----&lt;br /&gt;
     Beta Value: 1                       # 1: smoother , 2: sharper, 12: compromise between 1 and 2&lt;br /&gt;
     YZB Farfield Conditions: 1e5 2119 10 10 300 # [Pressure, X-Vel, Y-Vel, Z-Vel, Temperature] &lt;br /&gt;
     YZB Farfield Mole Frac: 1 0 0 0 0   # mole fractions at reference condition&lt;br /&gt;
                                         # [xN2,xO2,xNO,xN,xO] &lt;br /&gt;
                                         # must sum to 1, must be length 5 &lt;br /&gt;
     Include Umod Term: 1                # 0: no, 1: yes&lt;br /&gt;
     Mach Adjustment Bm Value: 1         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Mach Adjustment Bj Value: 6         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Include Time Term in Z: 1           # 0: no, 1: yes&lt;br /&gt;
#------------------------------------------&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#STEP SEQUENCE &lt;br /&gt;
#{&lt;br /&gt;
       Step Construction  : 0 1 0 1&lt;br /&gt;
#}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Post-Processing ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;PhastaMetaFile number_of_pieces=&amp;quot;24&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;GeometryFileNamePattern pattern=&amp;quot;24-procs_case/geombc.dat.%d&amp;quot; &lt;br /&gt;
                            has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                            has_time_entry=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;FieldFileNamePattern pattern=&amp;quot;24-procs_case/restart.%d.%d&amp;quot;&lt;br /&gt;
                         has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                         has_time_entry=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;TimeSteps number_of_steps=&amp;quot;1&amp;quot; &lt;br /&gt;
	      auto_generate_indices=&amp;quot;1&amp;quot;&lt;br /&gt;
              start_index=&amp;quot;2010&amp;quot;&lt;br /&gt;
	      increment_index_by=&amp;quot;50&amp;quot;&lt;br /&gt;
              start_value=&amp;quot;0&amp;quot;&lt;br /&gt;
              increment_value_by=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/TimeSteps&amp;gt;&lt;br /&gt;
   &amp;lt;Fields number_of_fields=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;rho&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;0&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;velocity&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;1&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;3&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temp_vib&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;4&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temperature&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;5&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;errors&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;nu&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;9&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/Fields&amp;gt;&lt;br /&gt;
&amp;lt;/PhastaMetaFile&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1767</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1767"/>
				<updated>2022-03-18T00:54:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Simulation Inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of solver.inp file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# PHASTA_HYP Version 1 Input File&lt;br /&gt;
&lt;br /&gt;
#SOLUTION CONTROL &lt;br /&gt;
#{                &lt;br /&gt;
     Equation of State: Compressible&lt;br /&gt;
     Number of Timesteps: 100  &lt;br /&gt;
     Time Step Size: 3.2339656949004e-08&lt;br /&gt;
&lt;br /&gt;
     Limit Density: 0 0.01 0.1         # solution limiting on variables [switch, min, max]&lt;br /&gt;
     Limit u1: 0 0. 2.8e3&lt;br /&gt;
     Limit u2: 0 0 0&lt;br /&gt;
     Limit u3: 0 0 0&lt;br /&gt;
     Limit Temperature: 0 230 3500     # also limits vibrational temperature&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#OUTPUT CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Number of Timesteps between Restarts: 250   &lt;br /&gt;
     Print Error Indicators: True                   # shock error stored in column 6, DC factor \nu stored in column 10&lt;br /&gt;
     Error Indicator Threshold: 0.01                # err &amp;gt; thresh*err_max is flagged as 1 (i.e. identified for refinement)&lt;br /&gt;
                                                    #   --&amp;gt; smaller values = narrower flagged region along shock&lt;br /&gt;
     Number of Error Smoothing Iterations: 0        # ierrsmooth&lt;br /&gt;
     Load and set 3D IC: False                      # load the flowfield from a file as the initial condition&lt;br /&gt;
     Position Tolerance on IC Load: 1e-7            # sets the tolerance for matching node locations while loading the initial condition&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#MATERIAL CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Viscosity: 1.95508431704028e-5                 # dynamic viscosity (only used if nsp.eq.99 for air mixture)&lt;br /&gt;
     Thermal Conductivity: 26.6843390135759e-3      # only used if nsp.eq.99 for air mixture&lt;br /&gt;
     Viscous Control: None    #Viscous   #None      &lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#REACTING FLOW&lt;br /&gt;
#{&lt;br /&gt;
     Number of species: 1               # nsp&lt;br /&gt;
#.......currently only allowing 1&amp;lt;=nsp&amp;lt;=5. &lt;br /&gt;
#.........and make sure scalars passed from simmodeler are in correct slots&lt;br /&gt;
#&lt;br /&gt;
     Species IDs: 1             # specIDs, length of array must equal&lt;br /&gt;
                                        #    nsp (IDs numbered in order:&lt;br /&gt;
                                        #            N2,O2,NO,N,O&lt;br /&gt;
                                        #   ID:99 for Air molecule&lt;br /&gt;
     # e.g. Species IDs: 1 3      &amp;lt;&amp;lt;&amp;lt; would give N2 and NO&lt;br /&gt;
     Ref Entropy Conditions: 1e3 230 230 0   #[P0,T0,T0vib,S0]&lt;br /&gt;
     Ref Entropy Mole Frac: 1 0 0 0 0   # composition of gas used as reference entropy condition&lt;br /&gt;
                                        #  &amp;gt;&amp;gt; must sum to zero&lt;br /&gt;
     Allow reactions: False             # chemical reactions, ichem = 1 if True&lt;br /&gt;
     Chemical heat release: False       # chemical heat release, iqtot = 1 if True&lt;br /&gt;
     Limit on reaction step: 0.00001    # rlim (limits change in species cs per step)&lt;br /&gt;
     Tolerance to global time: 0.01     # ttol, chem solver is advanced in time until time diff &amp;lt; ttol*dt_global&lt;br /&gt;
     Temperature threshold: 500         # Tth (below which, reactions ignored)&lt;br /&gt;
     Reaction solver MIN steps: 5       # nstepmin, minimum number of time steps&lt;br /&gt;
     Reaction solver MAX steps: 100     # nstepmax, maximum number of time steps&lt;br /&gt;
     Two Temperature coefficient: 0.5   # qta (Tvib**qta*T**(1-qta))&lt;br /&gt;
     Exclude vib energy: True           # ivib0 = 1 if True&lt;br /&gt;
     Exclude vib source: True           # ivibS0 = 1 if True&lt;br /&gt;
     Tvib BC Ratio: 1.0			# at any BC with T set, Tvib = tvibBC * T&lt;br /&gt;
     Vibrational Temperature IC: -1     # set negative value to force Tvib = T, otherwise positive value set as IC value&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#LINEAR SOLVER&lt;br /&gt;
#&lt;br /&gt;
     Solver Type: GMRES sparse      &lt;br /&gt;
     Number of GMRES Sweeps per Solve: 1                       # replaces nGMRES&lt;br /&gt;
     Minimum Number of Iterations per Nonlinear Iteration: 10  # minIters&lt;br /&gt;
     Number of Krylov Vectors per GMRES Sweep: 100	       # replaces Kspace    &lt;br /&gt;
     Tolerance on Momentum Equations: 0.01                     # epstol(1), affects etol for Hessenberg problem&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCRETIZATION CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Weak Form: SUPG 		             # alternate is Galerkin only for compressible&lt;br /&gt;
     Time Integration Rule: First Order      # 1st Order sets rinf(1) -1&lt;br /&gt;
     Tau Matrix: Matrix-Ent-Adv&lt;br /&gt;
     Include Viscous Correction in Stabilization: False    # if p=1 idiff=1&lt;br /&gt;
                                                           # if p=2 idiff=2  &lt;br /&gt;
     Tau Time Constant: 1.0&lt;br /&gt;
     Tau C Scale Factor: 1.0                 # taucfct  best value depends&lt;br /&gt;
     Number of Elements Per Block: 64        #ibksiz&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCONTINUITY CAPTURING&lt;br /&gt;
#{&lt;br /&gt;
     Discontinuity Capturing: DC-quadratic    # Current Options: DC-mallet, DC-minimum, DC-quadratic, DC-yzbeta&lt;br /&gt;
     Multiplier for DC factor: 1              # scales DC variable in e3DC&lt;br /&gt;
     Discontinuity Capturing Scheme: 1        # 0: discontinuous, 1: continuous (L2 projection)&lt;br /&gt;
     Include Source Term in DC: 0             # 1: sets idcSRC to 1&lt;br /&gt;
     Write DCqpt: 0                           # if &amp;gt; 0, writes out data at a quadrature point iDCqpt&lt;br /&gt;
&lt;br /&gt;
#----Parameters for YZBeta DC operator ----&lt;br /&gt;
     Beta Value: 1                       # 1: smoother , 2: sharper, 12: compromise between 1 and 2&lt;br /&gt;
     YZB Farfield Conditions: 1e5 2119 10 10 300 # [Pressure, X-Vel, Y-Vel, Z-Vel, Temperature] &lt;br /&gt;
     YZB Farfield Mole Frac: 1 0 0 0 0   # mole fractions at reference condition&lt;br /&gt;
                                         # [xN2,xO2,xNO,xN,xO] &lt;br /&gt;
                                         # must sum to 1, must be length 5 &lt;br /&gt;
     Include Umod Term: 1                # 0: no, 1: yes&lt;br /&gt;
     Mach Adjustment Bm Value: 1         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Mach Adjustment Bj Value: 6         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Include Time Term in Z: 1           # 0: no, 1: yes&lt;br /&gt;
#------------------------------------------&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#STEP SEQUENCE &lt;br /&gt;
#{&lt;br /&gt;
       Step Construction  : 0 1 0 1&lt;br /&gt;
#}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Post-Processing ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;PhastaMetaFile number_of_pieces=&amp;quot;24&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;GeometryFileNamePattern pattern=&amp;quot;24-procs_case/geombc.dat.%d&amp;quot; &lt;br /&gt;
                            has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                            has_time_entry=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;FieldFileNamePattern pattern=&amp;quot;24-procs_case/restart.%d.%d&amp;quot;&lt;br /&gt;
                         has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                         has_time_entry=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;TimeSteps number_of_steps=&amp;quot;1&amp;quot; &lt;br /&gt;
	      auto_generate_indices=&amp;quot;1&amp;quot;&lt;br /&gt;
              start_index=&amp;quot;2010&amp;quot;&lt;br /&gt;
	      increment_index_by=&amp;quot;50&amp;quot;&lt;br /&gt;
              start_value=&amp;quot;0&amp;quot;&lt;br /&gt;
              increment_value_by=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/TimeSteps&amp;gt;&lt;br /&gt;
   &amp;lt;Fields number_of_fields=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;rho&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;0&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;velocity&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;1&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;3&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temp_vib&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;4&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temperature&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;5&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;errors&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;nu&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;9&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/Fields&amp;gt;&lt;br /&gt;
&amp;lt;/PhastaMetaFile&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1766</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1766"/>
				<updated>2022-03-18T00:50:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Simulation Inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of solver.inp file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# PHASTA_HYP Version 1 Input File&lt;br /&gt;
&lt;br /&gt;
#SOLUTION CONTROL &lt;br /&gt;
#{                &lt;br /&gt;
     Equation of State: Compressible&lt;br /&gt;
     Number of Timesteps: 100  &lt;br /&gt;
     Time Step Size: 3.2339656949004e-08&lt;br /&gt;
&lt;br /&gt;
     Limit Density: 0 0.01 0.1         # solution limiting on variables [switch, min, max]&lt;br /&gt;
     Limit u1: 0 0. 2.8e3&lt;br /&gt;
     Limit u2: 0 0 0&lt;br /&gt;
     Limit u3: 0 0 0&lt;br /&gt;
     Limit Temperature: 0 230 3500     # also limits vibrational temperature&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#OUTPUT CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Number of Timesteps between Restarts: 250   &lt;br /&gt;
     Print Error Indicators: True                   # shock error stored in column 6, DC factor \nu stored in column 10&lt;br /&gt;
     Error Indicator Threshold: 0.01                # err &amp;gt; thresh*err_max is flagged as 1 (i.e. identified for refinement)&lt;br /&gt;
                                                    #   --&amp;gt; smaller values = narrower flagged region along shock&lt;br /&gt;
     Number of Error Smoothing Iterations: 0        # ierrsmooth&lt;br /&gt;
     Load and set 3D IC: False                      # load the flowfield from a file as the initial condition&lt;br /&gt;
     Position Tolerance on IC Load: 1e-7            # sets the tolerance for matching node locations while loading the initial condition&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#MATERIAL CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Viscosity: 1.95508431704028e-5                 # dynamic viscosity (only used if nsp.eq.99 for air mixture)&lt;br /&gt;
     Thermal Conductivity: 26.6843390135759e-3      # only used if nsp.eq.99 for air mixture&lt;br /&gt;
     Viscous Control: None    #Viscous   #None      &lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#REACTING FLOW&lt;br /&gt;
#{&lt;br /&gt;
     Number of species: 1               # nsp&lt;br /&gt;
#.......currently only allowing 1&amp;lt;=nsp&amp;lt;=5. &lt;br /&gt;
#.........and make sure scalars passed from simmodeler are in correct slots&lt;br /&gt;
#&lt;br /&gt;
     Species IDs: 1             # specIDs, length of array must equal&lt;br /&gt;
                                        #    nsp (IDs numbered in order:&lt;br /&gt;
                                        #            N2,O2,NO,N,O&lt;br /&gt;
                                        #   ID:99 for Air molecule&lt;br /&gt;
     # e.g. Species IDs: 1 3      &amp;lt;&amp;lt;&amp;lt; would give N2 and NO&lt;br /&gt;
     Ref Entropy Conditions: 1e3 230 230 0   #[P0,T0,T0vib,S0]&lt;br /&gt;
     Ref Entropy Mole Frac: 1 0 0 0 0&lt;br /&gt;
     Allow reactions: False             # chemical reactions, ichem = 1 if True&lt;br /&gt;
     Chemical heat release: False       # chemical heat release, iqtot = 1 if True&lt;br /&gt;
     Limit on reaction step: 0.00001    # rlim (limits change in species cs per step)&lt;br /&gt;
     Tolerance to global time: 0.01     # ttol, chem solver is advanced in time until time diff &amp;lt; ttol*dt_global&lt;br /&gt;
     Temperature threshold: 500         # Tth (below which, reactions ignored)&lt;br /&gt;
     Reaction solver MIN steps: 5       # nstepmin, minimum number of time steps&lt;br /&gt;
     Reaction solver MAX steps: 100     # nstepmax, maximum number of time steps&lt;br /&gt;
     Two Temperature coefficient: 0.5   # qta (Tvib**qta*T**(1-qta))&lt;br /&gt;
     Exclude vib energy: True           # ivib0 = 1 if True&lt;br /&gt;
     Exclude vib source: True           # ivibS0 = 1 if True&lt;br /&gt;
     Tvib BC Ratio: 1.0			# at any BC with T set, Tvib = tvibBC * T&lt;br /&gt;
     Vibrational Temperature IC: -1     # set negative value to force Tvib = T, otherwise positive value set as IC value&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#LINEAR SOLVER&lt;br /&gt;
#&lt;br /&gt;
     Solver Type: GMRES sparse      &lt;br /&gt;
     Number of GMRES Sweeps per Solve: 1                       # replaces nGMRES&lt;br /&gt;
     Minimum Number of Iterations per Nonlinear Iteration: 10  # minIters&lt;br /&gt;
     Number of Krylov Vectors per GMRES Sweep: 100	       # replaces Kspace    &lt;br /&gt;
     Tolerance on Momentum Equations: 0.01                     # epstol(1), affects etol for Hessenberg problem&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCRETIZATION CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Weak Form: SUPG 		             # alternate is Galerkin only for compressible&lt;br /&gt;
     Time Integration Rule: First Order      # 1st Order sets rinf(1) -1&lt;br /&gt;
     Tau Matrix: Matrix-Ent-Adv&lt;br /&gt;
     Include Viscous Correction in Stabilization: False    # if p=1 idiff=1&lt;br /&gt;
                                                           # if p=2 idiff=2  &lt;br /&gt;
     Tau Time Constant: 1.0&lt;br /&gt;
     Tau C Scale Factor: 1.0                 # taucfct  best value depends&lt;br /&gt;
     Number of Elements Per Block: 64        #ibksiz&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCONTINUITY CAPTURING&lt;br /&gt;
#{&lt;br /&gt;
     Discontinuity Capturing: DC-quadratic    # Current Options: DC-mallet, DC-minimum, DC-quadratic, DC-yzbeta&lt;br /&gt;
     Multiplier for DC factor: 1              # scales DC variable in e3DC&lt;br /&gt;
     Discontinuity Capturing Scheme: 1        # 0: discontinuous, 1: continuous (L2 projection)&lt;br /&gt;
     Include Source Term in DC: 0             # 1: sets idcSRC to 1&lt;br /&gt;
     Write DCqpt: 0                           # if &amp;gt; 0, writes out data at a quadrature point iDCqpt&lt;br /&gt;
&lt;br /&gt;
#----Parameters for YZBeta DC operator ----&lt;br /&gt;
     Beta Value: 1                       # 1: smoother , 2: sharper, 12: compromise between 1 and 2&lt;br /&gt;
     YZB Farfield Conditions: 1e5 2119 10 10 300 # [Pressure, X-Vel, Y-Vel, Z-Vel, Temperature] &lt;br /&gt;
     YZB Farfield Mole Frac: 1 0 0 0 0   # mole fractions at reference condition&lt;br /&gt;
                                         # [xN2,xO2,xNO,xN,xO] &lt;br /&gt;
                                         # must sum to 1, must be length 5 &lt;br /&gt;
     Include Umod Term: 1                # 0: no, 1: yes&lt;br /&gt;
     Mach Adjustment Bm Value: 1         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Mach Adjustment Bj Value: 6         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Include Time Term in Z: 1           # 0: no, 1: yes&lt;br /&gt;
#------------------------------------------&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#STEP SEQUENCE &lt;br /&gt;
#{&lt;br /&gt;
       Step Construction  : 0 1 0 1&lt;br /&gt;
#}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Post-Processing ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;PhastaMetaFile number_of_pieces=&amp;quot;24&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;GeometryFileNamePattern pattern=&amp;quot;24-procs_case/geombc.dat.%d&amp;quot; &lt;br /&gt;
                            has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                            has_time_entry=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;FieldFileNamePattern pattern=&amp;quot;24-procs_case/restart.%d.%d&amp;quot;&lt;br /&gt;
                         has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                         has_time_entry=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;TimeSteps number_of_steps=&amp;quot;1&amp;quot; &lt;br /&gt;
	      auto_generate_indices=&amp;quot;1&amp;quot;&lt;br /&gt;
              start_index=&amp;quot;2010&amp;quot;&lt;br /&gt;
	      increment_index_by=&amp;quot;50&amp;quot;&lt;br /&gt;
              start_value=&amp;quot;0&amp;quot;&lt;br /&gt;
              increment_value_by=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/TimeSteps&amp;gt;&lt;br /&gt;
   &amp;lt;Fields number_of_fields=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;rho&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;0&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;velocity&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;1&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;3&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temp_vib&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;4&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temperature&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;5&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;errors&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;nu&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;9&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/Fields&amp;gt;&lt;br /&gt;
&amp;lt;/PhastaMetaFile&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1765</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1765"/>
				<updated>2022-03-17T23:00:51Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Simulation Inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of solver.inp file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# PHASTA_HYP Version 1 Input File&lt;br /&gt;
&lt;br /&gt;
#SOLUTION CONTROL &lt;br /&gt;
#{                &lt;br /&gt;
     Equation of State: Compressible&lt;br /&gt;
     Number of Timesteps: 100  &lt;br /&gt;
     Time Step Size: 3.2339656949004e-08&lt;br /&gt;
&lt;br /&gt;
     Limit Density: 0 0.01 0.1         # solution limiting on variables [switch min max]&lt;br /&gt;
     Limit u1: 0 0. 2.8e3&lt;br /&gt;
     Limit u2: 0 0 0&lt;br /&gt;
     Limit u3: 0 0 0&lt;br /&gt;
     Limit Temperature: 0 230 3500     # also limits vibrational temperature&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#OUTPUT CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Number of Timesteps between Restarts: 250   &lt;br /&gt;
     Print Error Indicators: True                   # shock error stored in column 6, DC factor \nu stored in column 10&lt;br /&gt;
     Error Indicator Threshold: 0.01                # err &amp;gt; thresh*err_max is flagged as 1 (i.e. identified for refinement)&lt;br /&gt;
                                                    #   --&amp;gt; smaller values = narrower flagged region along shock&lt;br /&gt;
     Number of Error Smoothing Iterations: 0        # ierrsmooth&lt;br /&gt;
     Load and set 3D IC: False                      # load the flowfield from a file as the initial condition&lt;br /&gt;
     Position Tolerance on IC Load: 1e-7            # sets the tolerance for matching points for loading the initial condition&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#MATERIAL CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Viscosity: 1.95508431704028e-5      #&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; this is required to run (value used if nsp.eq.99)&lt;br /&gt;
     Thermal Conductivity: 26.6843390135759e-3&lt;br /&gt;
     Viscous Control: None    #Viscous   #None&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#REACTING FLOW&lt;br /&gt;
#{&lt;br /&gt;
     Number of species: 1               # nsp&lt;br /&gt;
#.......currently only allowing 1&amp;lt;=nsp&amp;lt;=5. &lt;br /&gt;
#.........and make sure scalars passed from simmodeler are in correct slots&lt;br /&gt;
#&lt;br /&gt;
     Species IDs: 1             # specIDs, length of array must equal&lt;br /&gt;
                                        #    nsp (IDs numbered in order:&lt;br /&gt;
                                        #            N2,O2,NO,N,O&lt;br /&gt;
                                        #   ID:99 for Air molecule&lt;br /&gt;
     Ref Entropy Conditions: 1e3 230 230 0   #[P0,T0,T0vib,S0]&lt;br /&gt;
     Ref Entropy Species: 1 2           # uses IDs above (NOT ACTIVE YET)&lt;br /&gt;
     Ref Entropy Mole Frac: 1 0 0 0 0&lt;br /&gt;
     Allow reactions: False             # ichem = 1 if True&lt;br /&gt;
     Chemical heat release: False       # iqtot = 1 if True&lt;br /&gt;
     Limit on reaction step: 0.00001    # rlim (limits change in species cs per step)&lt;br /&gt;
Tolerance to global time: 1.0  #0.01     # ttol&lt;br /&gt;
     Temperature threshold: 500         # Tth (below which, reactions ignored)&lt;br /&gt;
     Reaction solver MIN steps: 5       # nstepmin&lt;br /&gt;
     Reaction solver MAX steps: 100     # nstepmax&lt;br /&gt;
     Two Temperature coefficient: 0.5   # qta (Tvib**qta*T**(1-qta))&lt;br /&gt;
     Exclude vib energy: True           # ivib0 = 1 if True&lt;br /&gt;
     Exclude vib source: True          # ivibS0 = 1 if True&lt;br /&gt;
     Tvib BC Ratio: 1.0			# at any BC with T set, Tvib = tvibBC * T&lt;br /&gt;
     Vibrational Temperature IC: -1    # set negative value to force Tvib = T&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#LINEAR SOLVER&lt;br /&gt;
#&lt;br /&gt;
     Solver Type: GMRES sparse      &amp;lt;&amp;lt;&amp;lt; default, but why does it have to be set?&lt;br /&gt;
     Number of GMRES Sweeps per Solve: 1      # replaces nGMRES&lt;br /&gt;
     Minimum Number of Iterations per Nonlinear Iteration: 10  # minIters&lt;br /&gt;
     Number of Krylov Vectors per GMRES Sweep: 100	# replaces Kspace    &lt;br /&gt;
     Tolerance on Momentum Equations: 0.01        # epstol(1), affects etol for Hessenberg problem&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCRETIZATION CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Weak Form: SUPG 		# alternate is Galerkin only for compressible&lt;br /&gt;
     Time Integration Rule: First Order      # 1st Order sets rinf(1) -1&lt;br /&gt;
#     Time Integration Rule: Second Order    # Second Order sets rinf next&lt;br /&gt;
#     Time Integration Rho Infinity: 0.5     # rinf(1) Only used for 2nd order&lt;br /&gt;
#     Tau Matrix: Diagonal-Franca-Entropy               #itau=4&lt;br /&gt;
     Tau Matrix: Matrix-Ent-Adv&lt;br /&gt;
#     Tau Matrix: Diagonal-Shakib-Entropy&lt;br /&gt;
     Include Viscous Correction in Stabilization: False    # if p=1 idiff=1&lt;br /&gt;
                                                           # if p=2 idiff=2  &lt;br /&gt;
     Tau Time Constant: 1.0&lt;br /&gt;
     Tau C Scale Factor: 1.0                    # taucfct  best value depends&lt;br /&gt;
     Number of Elements Per Block: 64       #ibksiz&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#DISCONTINUITY CAPTURING&lt;br /&gt;
#{&lt;br /&gt;
     Discontinuity Capturing: DC-quadratic    # Current Options: DC-mallet, DC-minimum, DC-quadratic, DC-yzbeta&lt;br /&gt;
     Multiplier for DC factor: 1     # scales DC variable in e3DC&lt;br /&gt;
     Discontinuity Capturing Scheme: 1  #0: discontinuous, 1: continuous (L2 projection)&lt;br /&gt;
     Include Source Term in DC: 0            # 1: sets idcSRC to 1&lt;br /&gt;
     Write DCqpt: 0&lt;br /&gt;
#----Parameters for YZBeta DC operator ----&lt;br /&gt;
     Beta Value: 1                       # 1: smoother , 2: sharper, 12: compromise between 1 and 2&lt;br /&gt;
     YZB Farfield Conditions: 1e5 2119 10 10 300 # [Pressure, X-Vel, Y-Vel, Z-Vel, Temperature] &lt;br /&gt;
     YZB Farfield Mole Frac: 1 0 0 0 0   # mole fractions at reference condition&lt;br /&gt;
                                         # [xN2,xO2,xNO,xN,xO] &lt;br /&gt;
                                         # must sum to 1, must be length 5 &lt;br /&gt;
     Include Umod Term: 1                # 0: no, 1: yes&lt;br /&gt;
     Mach Adjustment Bm Value: 1         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Mach Adjustment Bj Value: 6         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Include Time Term in Z: 1           # 0: no, 1: yes&lt;br /&gt;
#------------------------------------------&lt;br /&gt;
		 &lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#STEP SEQUENCE &lt;br /&gt;
#{&lt;br /&gt;
       Step Construction  : 0 1 0 1&lt;br /&gt;
#}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Post-Processing ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
&amp;lt;PhastaMetaFile number_of_pieces=&amp;quot;24&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;GeometryFileNamePattern pattern=&amp;quot;24-procs_case/geombc.dat.%d&amp;quot; &lt;br /&gt;
                            has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                            has_time_entry=&amp;quot;0&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;FieldFileNamePattern pattern=&amp;quot;24-procs_case/restart.%d.%d&amp;quot;&lt;br /&gt;
                         has_piece_entry=&amp;quot;1&amp;quot;&lt;br /&gt;
                         has_time_entry=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;TimeSteps number_of_steps=&amp;quot;1&amp;quot; &lt;br /&gt;
	      auto_generate_indices=&amp;quot;1&amp;quot;&lt;br /&gt;
              start_index=&amp;quot;2010&amp;quot;&lt;br /&gt;
	      increment_index_by=&amp;quot;50&amp;quot;&lt;br /&gt;
              start_value=&amp;quot;0&amp;quot;&lt;br /&gt;
              increment_value_by=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/TimeSteps&amp;gt;&lt;br /&gt;
   &amp;lt;Fields number_of_fields=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;rho&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;0&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;velocity&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;1&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;3&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temp_vib&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;4&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;solution&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;temperature&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;5&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;Field phasta_field_tag=&amp;quot;errors&amp;quot;&lt;br /&gt;
            paraview_field_tag=&amp;quot;nu&amp;quot;&lt;br /&gt;
            start_index_in_phasta_array=&amp;quot;9&amp;quot;&lt;br /&gt;
            number_of_components=&amp;quot;1&amp;quot;&lt;br /&gt;
            data_dependency=&amp;quot;0&amp;quot;&lt;br /&gt;
            data_type=&amp;quot;double&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/Fields&amp;gt;&lt;br /&gt;
&amp;lt;/PhastaMetaFile&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1764</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1764"/>
				<updated>2022-03-17T22:41:04Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Simulation Inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of solver.inp file:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;# ibksiz flmpl flmpr itwmod wmodts dmodts fwr taucfct&lt;br /&gt;
# PHASTA Version 1.5 Input File&lt;br /&gt;
#&lt;br /&gt;
#  Basic format is&lt;br /&gt;
#&lt;br /&gt;
#    Key Phrase  :  Acceptable Value (integer, double, logical, or phrase&lt;br /&gt;
#                                     list of integers, list of doubles )&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
# ****************** Notes ********************************&lt;br /&gt;
# 1. Bulk viscosity set to 0 in common.f (bmu)&lt;br /&gt;
# 2. Right now, nsp cannot be anything other than 5&lt;br /&gt;
# 3. idiff must be zero for now&lt;br /&gt;
# 4. iqtot does nothing for now since source terms are not being handled&lt;br /&gt;
#    (commented out call to e3source in e3.f)&lt;br /&gt;
# 5.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#SOLUTION CONTROL &lt;br /&gt;
#{                &lt;br /&gt;
     Equation of State: Compressible&lt;br /&gt;
Number of Timesteps: 1  &lt;br /&gt;
Time Step Size: 3.2339656949004e-08  # cfl = 1 is dt = 7.8702386e-8&lt;br /&gt;
&lt;br /&gt;
     Limit Density: 0 0.01 0.1&lt;br /&gt;
     Limit u1: 0 0. 2.8e3&lt;br /&gt;
     Limit u2: 0 0 0&lt;br /&gt;
     Limit u3: 0 0 0&lt;br /&gt;
     Limit Temperature: 0 230 3500     !also limits vibrational temperature&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#OUTPUT CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Number of Timesteps between Restarts: 250   #replaces nout/ntout&lt;br /&gt;
     Print Error Indicators: True&lt;br /&gt;
     Error Indicator Threshold: 0.01&lt;br /&gt;
     Number of Error Smoothing Iterations: 0  #ierrsmooth&lt;br /&gt;
     Load and set 3D IC: False&lt;br /&gt;
     Position Tolerance on IC Load: 1e-7     # sets the tolerance for matching points&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#MATERIAL CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Viscosity: 1.95508431704028e-5      #&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; this is required to run (value used if nsp.eq.99)&lt;br /&gt;
     Thermal Conductivity: 26.6843390135759e-3&lt;br /&gt;
     Viscous Control: None    #Viscous   #None&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#REACTING FLOW&lt;br /&gt;
#{&lt;br /&gt;
     Number of species: 1               # nsp&lt;br /&gt;
#.......currently only allowing 1&amp;lt;=nsp&amp;lt;=5. &lt;br /&gt;
#.........and make sure scalars passed from simmodeler are in correct slots&lt;br /&gt;
#&lt;br /&gt;
     Species IDs: 1             # specIDs, length of array must equal&lt;br /&gt;
                                        #    nsp (IDs numbered in order:&lt;br /&gt;
                                        #            N2,O2,NO,N,O&lt;br /&gt;
                                        #   ID:99 for Air molecule&lt;br /&gt;
     Ref Entropy Conditions: 1e3 230 230 0   #[P0,T0,T0vib,S0]&lt;br /&gt;
     Ref Entropy Species: 1 2           # uses IDs above (NOT ACTIVE YET)&lt;br /&gt;
     Ref Entropy Mole Frac: 1 0 0 0 0&lt;br /&gt;
     Allow reactions: False             # ichem = 1 if True&lt;br /&gt;
     Chemical heat release: False       # iqtot = 1 if True&lt;br /&gt;
     Limit on reaction step: 0.00001    # rlim (limits change in species cs per step)&lt;br /&gt;
Tolerance to global time: 1.0  #0.01     # ttol&lt;br /&gt;
     Temperature threshold: 500         # Tth (below which, reactions ignored)&lt;br /&gt;
     Reaction solver MIN steps: 5       # nstepmin&lt;br /&gt;
     Reaction solver MAX steps: 100     # nstepmax&lt;br /&gt;
     Two Temperature coefficient: 0.5   # qta (Tvib**qta*T**(1-qta))&lt;br /&gt;
     Exclude vib energy: True           # ivib0 = 1 if True&lt;br /&gt;
     Exclude vib source: True          # ivibS0 = 1 if True&lt;br /&gt;
     Tvib BC Ratio: 1.0			# at any BC with T set, Tvib = tvibBC * T&lt;br /&gt;
     Vibrational Temperature IC: -1    # set negative value to force Tvib = T&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#LINEAR SOLVER&lt;br /&gt;
#&lt;br /&gt;
     Solver Type: GMRES sparse      &amp;lt;&amp;lt;&amp;lt; default, but why does it have to be set?&lt;br /&gt;
     Number of GMRES Sweeps per Solve: 1      # replaces nGMRES&lt;br /&gt;
     Minimum Number of Iterations per Nonlinear Iteration: 10  # minIters&lt;br /&gt;
     Number of Krylov Vectors per GMRES Sweep: 100	# replaces Kspace    &lt;br /&gt;
     Tolerance on Momentum Equations: 0.01        # epstol(1), affects etol for Hessenberg problem&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCRETIZATION CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Weak Form: SUPG 		# alternate is Galerkin only for compressible&lt;br /&gt;
     Time Integration Rule: First Order      # 1st Order sets rinf(1) -1&lt;br /&gt;
#     Time Integration Rule: Second Order    # Second Order sets rinf next&lt;br /&gt;
#     Time Integration Rho Infinity: 0.5     # rinf(1) Only used for 2nd order&lt;br /&gt;
#     Tau Matrix: Diagonal-Franca-Entropy               #itau=4&lt;br /&gt;
     Tau Matrix: Matrix-Ent-Adv&lt;br /&gt;
#     Tau Matrix: Diagonal-Shakib-Entropy&lt;br /&gt;
     Include Viscous Correction in Stabilization: False    # if p=1 idiff=1&lt;br /&gt;
                                                           # if p=2 idiff=2  &lt;br /&gt;
     Tau Time Constant: 1.0&lt;br /&gt;
     Tau C Scale Factor: 1.0                    # taucfct  best value depends&lt;br /&gt;
     Number of Elements Per Block: 64       #ibksiz&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#DISCONTINUITY CAPTURING&lt;br /&gt;
#{&lt;br /&gt;
     Discontinuity Capturing: DC-quadratic    # Current Options: DC-mallet, DC-minimum, DC-quadratic, DC-yzbeta&lt;br /&gt;
     Multiplier for DC factor: 1     # scales DC variable in e3DC&lt;br /&gt;
     Discontinuity Capturing Scheme: 1  #0: discontinuous, 1: continuous (L2 projection)&lt;br /&gt;
     Include Source Term in DC: 0            # 1: sets idcSRC to 1&lt;br /&gt;
     Write DCqpt: 0&lt;br /&gt;
#----Parameters for YZBeta DC operator ----&lt;br /&gt;
     Beta Value: 1                       # 1: smoother , 2: sharper, 12: compromise between 1 and 2&lt;br /&gt;
     YZB Farfield Conditions: 1e5 2119 10 10 300 # [Pressure, X-Vel, Y-Vel, Z-Vel, Temperature] &lt;br /&gt;
     YZB Farfield Mole Frac: 1 0 0 0 0   # mole fractions at reference condition&lt;br /&gt;
                                         # [xN2,xO2,xNO,xN,xO] &lt;br /&gt;
                                         # must sum to 1, must be length 5 &lt;br /&gt;
     Include Umod Term: 1                # 0: no, 1: yes&lt;br /&gt;
     Mach Adjustment Bm Value: 1         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Mach Adjustment Bj Value: 6         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Include Time Term in Z: 1           # 0: no, 1: yes&lt;br /&gt;
#------------------------------------------&lt;br /&gt;
		 &lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#STEP SEQUENCE &lt;br /&gt;
#{&lt;br /&gt;
       Step Construction  : 0 1 0 1&lt;br /&gt;
#}&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1763</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1763"/>
				<updated>2022-03-17T22:40:42Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Simulation Inputs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example of solver.inp file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;# ibksiz flmpl flmpr itwmod wmodts dmodts fwr taucfct&lt;br /&gt;
# PHASTA Version 1.5 Input File&lt;br /&gt;
#&lt;br /&gt;
#  Basic format is&lt;br /&gt;
#&lt;br /&gt;
#    Key Phrase  :  Acceptable Value (integer, double, logical, or phrase&lt;br /&gt;
#                                     list of integers, list of doubles )&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
# ****************** Notes ********************************&lt;br /&gt;
# 1. Bulk viscosity set to 0 in common.f (bmu)&lt;br /&gt;
# 2. Right now, nsp cannot be anything other than 5&lt;br /&gt;
# 3. idiff must be zero for now&lt;br /&gt;
# 4. iqtot does nothing for now since source terms are not being handled&lt;br /&gt;
#    (commented out call to e3source in e3.f)&lt;br /&gt;
# 5.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#SOLUTION CONTROL &lt;br /&gt;
#{                &lt;br /&gt;
     Equation of State: Compressible&lt;br /&gt;
Number of Timesteps: 1  &lt;br /&gt;
Time Step Size: 3.2339656949004e-08  # cfl = 1 is dt = 7.8702386e-8&lt;br /&gt;
&lt;br /&gt;
     Limit Density: 0 0.01 0.1&lt;br /&gt;
     Limit u1: 0 0. 2.8e3&lt;br /&gt;
     Limit u2: 0 0 0&lt;br /&gt;
     Limit u3: 0 0 0&lt;br /&gt;
     Limit Temperature: 0 230 3500     !also limits vibrational temperature&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#OUTPUT CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Number of Timesteps between Restarts: 250   #replaces nout/ntout&lt;br /&gt;
     Print Error Indicators: True&lt;br /&gt;
     Error Indicator Threshold: 0.01&lt;br /&gt;
     Number of Error Smoothing Iterations: 0  #ierrsmooth&lt;br /&gt;
     Load and set 3D IC: False&lt;br /&gt;
     Position Tolerance on IC Load: 1e-7     # sets the tolerance for matching points&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#MATERIAL CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Viscosity: 1.95508431704028e-5      #&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; this is required to run (value used if nsp.eq.99)&lt;br /&gt;
     Thermal Conductivity: 26.6843390135759e-3&lt;br /&gt;
     Viscous Control: None    #Viscous   #None&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#REACTING FLOW&lt;br /&gt;
#{&lt;br /&gt;
     Number of species: 1               # nsp&lt;br /&gt;
#.......currently only allowing 1&amp;lt;=nsp&amp;lt;=5. &lt;br /&gt;
#.........and make sure scalars passed from simmodeler are in correct slots&lt;br /&gt;
#&lt;br /&gt;
     Species IDs: 1             # specIDs, length of array must equal&lt;br /&gt;
                                        #    nsp (IDs numbered in order:&lt;br /&gt;
                                        #            N2,O2,NO,N,O&lt;br /&gt;
                                        #   ID:99 for Air molecule&lt;br /&gt;
     Ref Entropy Conditions: 1e3 230 230 0   #[P0,T0,T0vib,S0]&lt;br /&gt;
     Ref Entropy Species: 1 2           # uses IDs above (NOT ACTIVE YET)&lt;br /&gt;
     Ref Entropy Mole Frac: 1 0 0 0 0&lt;br /&gt;
     Allow reactions: False             # ichem = 1 if True&lt;br /&gt;
     Chemical heat release: False       # iqtot = 1 if True&lt;br /&gt;
     Limit on reaction step: 0.00001    # rlim (limits change in species cs per step)&lt;br /&gt;
Tolerance to global time: 1.0  #0.01     # ttol&lt;br /&gt;
     Temperature threshold: 500         # Tth (below which, reactions ignored)&lt;br /&gt;
     Reaction solver MIN steps: 5       # nstepmin&lt;br /&gt;
     Reaction solver MAX steps: 100     # nstepmax&lt;br /&gt;
     Two Temperature coefficient: 0.5   # qta (Tvib**qta*T**(1-qta))&lt;br /&gt;
     Exclude vib energy: True           # ivib0 = 1 if True&lt;br /&gt;
     Exclude vib source: True          # ivibS0 = 1 if True&lt;br /&gt;
     Tvib BC Ratio: 1.0			# at any BC with T set, Tvib = tvibBC * T&lt;br /&gt;
     Vibrational Temperature IC: -1    # set negative value to force Tvib = T&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#LINEAR SOLVER&lt;br /&gt;
#&lt;br /&gt;
     Solver Type: GMRES sparse      &amp;lt;&amp;lt;&amp;lt; default, but why does it have to be set?&lt;br /&gt;
     Number of GMRES Sweeps per Solve: 1      # replaces nGMRES&lt;br /&gt;
     Minimum Number of Iterations per Nonlinear Iteration: 10  # minIters&lt;br /&gt;
     Number of Krylov Vectors per GMRES Sweep: 100	# replaces Kspace    &lt;br /&gt;
     Tolerance on Momentum Equations: 0.01        # epstol(1), affects etol for Hessenberg problem&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
#DISCRETIZATION CONTROL&lt;br /&gt;
#{&lt;br /&gt;
     Weak Form: SUPG 		# alternate is Galerkin only for compressible&lt;br /&gt;
     Time Integration Rule: First Order      # 1st Order sets rinf(1) -1&lt;br /&gt;
#     Time Integration Rule: Second Order    # Second Order sets rinf next&lt;br /&gt;
#     Time Integration Rho Infinity: 0.5     # rinf(1) Only used for 2nd order&lt;br /&gt;
#     Tau Matrix: Diagonal-Franca-Entropy               #itau=4&lt;br /&gt;
     Tau Matrix: Matrix-Ent-Adv&lt;br /&gt;
#     Tau Matrix: Diagonal-Shakib-Entropy&lt;br /&gt;
     Include Viscous Correction in Stabilization: False    # if p=1 idiff=1&lt;br /&gt;
                                                           # if p=2 idiff=2  &lt;br /&gt;
     Tau Time Constant: 1.0&lt;br /&gt;
     Tau C Scale Factor: 1.0                    # taucfct  best value depends&lt;br /&gt;
     Number of Elements Per Block: 64       #ibksiz&lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#DISCONTINUITY CAPTURING&lt;br /&gt;
#{&lt;br /&gt;
     Discontinuity Capturing: DC-quadratic    # Current Options: DC-mallet, DC-minimum, DC-quadratic, DC-yzbeta&lt;br /&gt;
     Multiplier for DC factor: 1     # scales DC variable in e3DC&lt;br /&gt;
     Discontinuity Capturing Scheme: 1  #0: discontinuous, 1: continuous (L2 projection)&lt;br /&gt;
     Include Source Term in DC: 0            # 1: sets idcSRC to 1&lt;br /&gt;
     Write DCqpt: 0&lt;br /&gt;
#----Parameters for YZBeta DC operator ----&lt;br /&gt;
     Beta Value: 1                       # 1: smoother , 2: sharper, 12: compromise between 1 and 2&lt;br /&gt;
     YZB Farfield Conditions: 1e5 2119 10 10 300 # [Pressure, X-Vel, Y-Vel, Z-Vel, Temperature] &lt;br /&gt;
     YZB Farfield Mole Frac: 1 0 0 0 0   # mole fractions at reference condition&lt;br /&gt;
                                         # [xN2,xO2,xNO,xN,xO] &lt;br /&gt;
                                         # must sum to 1, must be length 5 &lt;br /&gt;
     Include Umod Term: 1                # 0: no, 1: yes&lt;br /&gt;
     Mach Adjustment Bm Value: 1         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Mach Adjustment Bj Value: 6         # 0: off,1: smoother shock, 2: sharper shock&lt;br /&gt;
     Include Time Term in Z: 1           # 0: no, 1: yes&lt;br /&gt;
#------------------------------------------&lt;br /&gt;
		 &lt;br /&gt;
&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#STEP SEQUENCE &lt;br /&gt;
#{&lt;br /&gt;
       Step Construction  : 0 1 0 1&lt;br /&gt;
#}&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1762</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1762"/>
				<updated>2022-03-17T19:41:07Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Pre-Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulate a gas with number of species (''nsp'') &amp;amp;le; 5. When 2 &amp;amp;le; ''nsp'' &amp;amp;le; 5, the ''scalar'' quantities are used to govern the composition of the gas. &lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1761</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1761"/>
				<updated>2022-03-17T19:37:56Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Pre-Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
In this section, details of the meshing and model attributes are provided. For simulation cases where the gas is modeled as a single species, the ''scalar'' quantities for boundary and initial conditions are not required. Currently, capability exists to simulated a gas with number of species ''nsp''&amp;amp;le;5.&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1760</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1760"/>
				<updated>2022-03-17T19:30:40Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Conditions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1759</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1759"/>
				<updated>2022-03-17T19:30:17Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Conditions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity, [m/s]&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature, [K]&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas, [Pa]&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1758</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1758"/>
				<updated>2022-03-17T19:29:50Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Boundary Conditions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity, [m/s]&lt;br /&gt;
* temperature - Specification of translational-rotational temperature, [K]. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface, [Pa]&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1757</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1757"/>
				<updated>2022-03-17T19:28:47Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Conditions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity&lt;br /&gt;
* temperature - Specification of translational-rotational temperature. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* initial velocity - Components and magnitude of flow velocity&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* initial temperature - Value used to set translational-rotational temperature&lt;br /&gt;
* initial scalar_1 - Initial value of species 2 mole fraction&lt;br /&gt;
* initial scalar_2 - Initial value of species 3 mole fraction&lt;br /&gt;
* initial scalar_3 - Initial value of species 4 mole fraction&lt;br /&gt;
* initial scalar_4 - Initial value of species 5 mole fraction&lt;br /&gt;
* initial pressure - Static pressure of the gas&lt;br /&gt;
** For multi-species flows, this value is used in combination with the initial scalar values to compute the mole fraction of species 1&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1756</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1756"/>
				<updated>2022-03-17T19:24:45Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Boundary Conditions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp1/comp2/comp3 - Specification of one/two/three components of velocity&lt;br /&gt;
* temperature - Specification of translational-rotational temperature. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface&lt;br /&gt;
** Used to compute mole fraction of species 1 of the gas with Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from a value of 1&lt;br /&gt;
* heat flux - set to zero for adiabatic wall boundary condition&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
Below are the required initial conditions for the current version:&lt;br /&gt;
* velocity - Components and magnitude of flow velocity&lt;br /&gt;
** If a supersonic outlet condition is used, set such that flow is initialized Mach &amp;gt; 1&lt;br /&gt;
* temperature - Value used to set translational-rotational temperature&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1755</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1755"/>
				<updated>2022-03-17T16:28:25Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Pre-Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
=== Boundary Conditions ===&lt;br /&gt;
Below are several of the recognized boundary conditions that can be applied for the current version:&lt;br /&gt;
* comp3 - Specification of three components of velocity&lt;br /&gt;
* temperature - Specification of translational/rotational temperature. By default, vibrational temperature is held in equilibrium with this value and nonequilibrium is controlled through simulation inputs. &lt;br /&gt;
* surfID - When value is set to 702, the boundary is treated as a slip wall. If using this option, include a boundary layer mesh along the surface to ensure the wall normal direction is accurately computed.&lt;br /&gt;
* scalar_1 - Mole fraction of species 2 of the gas&lt;br /&gt;
* scalar_2 - Mole fraction of species 3 of the gas&lt;br /&gt;
* scalar_3 - Mole fraction of species 4 of the gas&lt;br /&gt;
* scalar_4 - Mole fraction of species 5 of the gas&lt;br /&gt;
* pressure - Specification of static pressure over a surface&lt;br /&gt;
** Mole fraction of species 1 of the gas is computed using Dalton's Law of partial pressures and subtracting the summation of the other mole fractions from one&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Initial Conditions ===&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1754</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1754"/>
				<updated>2022-03-17T14:54:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Pre-Processing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
=== Meshing ===&lt;br /&gt;
Within the Simmodeler utility, the mesh can either be created or loaded from an existing .cas file. Below are steps for loading a mesh from a .cas file:&lt;br /&gt;
# Launch Simmodeler (for this example, SimModeler7.0-190604 is used)&lt;br /&gt;
# File &amp;gt; Import Discrete Data &amp;gt; (select .cas file to import) &amp;gt; (keep defaults and click OK) &amp;gt; (select YES to keep volume mesh)&lt;br /&gt;
# Save .sms and .smd files &lt;br /&gt;
# Attributes can now be assigned to the model as normal&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1748</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1748"/>
				<updated>2022-03-14T14:54:35Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Background */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pre-Processing ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Simulation Inputs ==&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1747</id>
		<title>TCNEQ Version</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=TCNEQ_Version&amp;diff=1747"/>
				<updated>2022-03-14T14:51:45Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Background */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Background ==&lt;br /&gt;
The following information relates to the use of the thermochemical nonequilibrium (TCNEQ) version of PHASTA written in terms of entropy variables. The reader is referred to the following for additional information.&lt;br /&gt;
&lt;br /&gt;
* F. Chalot, T.J.R. Hughes, and F. Shakib, '''&amp;quot;Symmetrization of Conservation Laws with Entropy for High-Temperature Hypersonic Computations,&amp;quot;''' Computing Systems in Engineering, 1(2-4):495–521, 1990.&lt;br /&gt;
&lt;br /&gt;
* J. Pointer, '''&amp;quot;Influence of Interpolation Variables and Discontinuity Capturing Operators on Inviscid Hypersonic Flow Simulations Using a Stabilized Continuous Galerkin Solver,&amp;quot;''' Ph.D. dissertation, University of Colorado, Boulder, CO, 2022.&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1746</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1746"/>
				<updated>2021-11-09T17:55:40Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from phParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190604&lt;br /&gt;
** The version of phParAdapt noted here uses only the 6th entry of the error field for identifying regions for adaptation&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt;adapt.inp&amp;lt;/code&amp;gt; file using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the above step fails, review the 'MeshSim.#.log' file that is produced to identify the error. One error related to analysis attributes has been experienced. The issue was found to be that under the 'Analysis attributes' section, on the 'problem definition' line the name must be set to 'geom'.&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1680</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1680"/>
				<updated>2021-07-14T16:10:40Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from phParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190604&lt;br /&gt;
** The version of phParAdapt noted here uses only the 6th entry of the error field for identifying regions for adaptation&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt;adapt.inp&amp;lt;/code&amp;gt; file using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the above step fails, review the 'MeshSim.#.log' file that is produced to identify the error. One error related to analysis attributes has been experienced. Removing all attributes other than an initial temperature attribute in Simmodeler and then recreating the soft links in the above step fixed this issue.&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1414</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1414"/>
				<updated>2021-04-28T22:50:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from phParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190604&lt;br /&gt;
** The version of phParAdapt noted here uses only the 6th entry of the error field for identifying regions for adaptation&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt;adapt.inp&amp;lt;/code&amp;gt; file using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1413</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1413"/>
				<updated>2021-04-28T20:20:52Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from phParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** The version of phParAdapt noted here uses only the 6th entry of the error field for identifying regions for adaptation&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt;adapt.inp&amp;lt;/code&amp;gt; file using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1412</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1412"/>
				<updated>2021-04-28T20:19:36Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from phParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** The version of phParAdapt noted here uses only the 6th entry of the error field for identifying regions for adaptation&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1411</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1411"/>
				<updated>2021-04-28T20:18:04Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from phParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of the error field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1410</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1410"/>
				<updated>2021-04-28T20:17:41Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from phParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1409</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1409"/>
				<updated>2021-04-28T20:17:10Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Generate Restart File for Refined Mesh */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above list of commands, the adapt.inp file from the non-adaptation step was copied into the current directory. Run phParAdapt using the same mpirun command as above to generate the 1-procs_case folder and the new restart file with the refined mesh. Again, since the solution migration feature is not working, the restart file will contain the initial solution and no error fields. A previously obtained solution can now be interpolated to the newly created one or PHASTA can be run in this directory to obtain a solution on the new mesh. &lt;br /&gt;
&lt;br /&gt;
In order to perform a second (or more) adaptation step, create a restart file in the 1-procs_case folder in the current directory (either by interpolation or running PHASTA) and make sure it contains the error fields. Create a new directory &amp;lt;code&amp;gt;A2-phParAdapt&amp;lt;/code&amp;gt; at this level and repeat the above steps. Be sure to use the time step number moving forward that is associated with the restart file just mentioned.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1408</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1408"/>
				<updated>2021-04-28T20:08:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Performing the Adaptation Step */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt using the mpirun command from the previous section. A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside upon successful completion.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the above, the adapt.inp file from the non-adaptation step was copied into the current directory.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1407</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1407"/>
				<updated>2021-04-28T20:07:09Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Notes on Debugging */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt with the following command,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the above, the adapt.inp file from the non-adaptation step was copied into the current directory.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed from the path to the executable to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1406</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1406"/>
				<updated>2021-04-28T20:06:23Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* File Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt with the following command,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the above, the adapt.inp file from the non-adaptation step was copied into the current directory.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Debugging ==&lt;br /&gt;
If debugging of phParAdapt is desired, replace the normal &amp;lt;code&amp;gt;mpirun&amp;lt;/code&amp;gt; command with the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 -tv /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the &amp;lt;code&amp;gt;-O&amp;lt;/code&amp;gt; has been removed to call the build version that was not optimized. Note that this requires phParAdapt to have been built at some point prior with the &amp;lt;code&amp;gt;Debug&amp;lt;/code&amp;gt; flag.&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1405</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1405"/>
				<updated>2021-04-28T20:01:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt with the following command,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the above, the adapt.inp file from the non-adaptation step was copied into the current directory.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1404</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1404"/>
				<updated>2021-04-28T19:59:05Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Performing the Adaptation Step */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Make sure the &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; parameter is set to one and change additional threshold flags to control the result of the refinement.&lt;br /&gt;
&lt;br /&gt;
Run phParAdapt with the following command,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi-O 2&amp;gt;&amp;amp;1 | tee phParAdapt.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A directory corresponding to the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter should have been created with a mesh_parts.sms folder inside.&lt;br /&gt;
&lt;br /&gt;
=== Generate Restart File for Refined Mesh ===&lt;br /&gt;
From within the A1-phParAdapt directory, execute the following (noting to replace &amp;lt;#&amp;gt; with the appropriate time step number):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;cd &amp;lt;#&amp;gt;&lt;br /&gt;
mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt&lt;br /&gt;
ln -s ../../../geom.smd&lt;br /&gt;
ln -s ../../../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
cp ../../../adapt.inp .&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the above, the adapt.inp file from the non-adaptation step was copied into the current directory.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1403</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1403"/>
				<updated>2021-04-28T19:48:19Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Performing the Adaptation Step */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template. Change the &amp;lt;code&amp;gt;timeStepNumber&amp;lt;/code&amp;gt; parameter to correspond to the restart file that was linked into the current directory. Change additional parameter flags&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1402</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1402"/>
				<updated>2021-04-28T19:45:17Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Note, error fields are not printed in intermediate restart files. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Performing the Adaptation Step ===&lt;br /&gt;
Within the 1-1-phParAdapt directory, &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir A1-phParAdapt&lt;br /&gt;
cd A1-phParAdapt&lt;br /&gt;
ln -s ../geom.smd&lt;br /&gt;
ln -s ../geom_nat.x_t&lt;br /&gt;
ln -s ../mesh_parts.sms geom.sms&lt;br /&gt;
ln -s geom.sms parts.sms&lt;br /&gt;
ln -s ../1-procs_case/restart.1.1&lt;br /&gt;
ln -s restart.1.1 errors.1.1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above step, it is assumed that the solution was interpolated onto restart.1.1. If that was not the case and the solution was advanced until a desired step was reached, replace restart.1.1 &amp;amp; errors.1.1 with restart.&amp;lt;#&amp;gt;.1 &amp;amp; errors.&amp;lt;#&amp;gt;.1 corresponding to the desired solution step number with error fields.&lt;br /&gt;
&lt;br /&gt;
Create an adapt.inp file using [[#Adapt.inp_(adaptation step) |Adapt.inp_(adaptation step)]] as a template.&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1401</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1401"/>
				<updated>2021-04-28T19:33:50Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]]. Keep &amp;lt;code&amp;gt;adaptFlag&amp;lt;/code&amp;gt; set to zero as the purpose of running phParAdapt here is to create restart.&amp;lt;timeStepNumber&amp;gt;.1 file associated with a new mesh format that can be used for adaptation. &lt;br /&gt;
&lt;br /&gt;
Run phParAdapt in this directory, which for this specific example was:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mpirun -np 1 /projects/tools/Simmetrix.develop_19/phParAdapt-Sim/phParAdapt-Sim19/bin/x86_64_linux/phParAdapt-parasolid-openmpi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After completion, the 1-procs_case and mesh_parts.sms directories should now be present. If a solution has already been generated for a different mesh on the same geometry, it can now be interpolated onto the new restart.&amp;lt;#&amp;gt;.1 file that was generated. If no solution exists, run Phasta using this restart file until the desired solution state has been achieved. Be sure to set &amp;lt;code&amp;gt;Print Error Indicators: True&amp;lt;/code&amp;gt; in the solver.inp file so the error fields are saved in the final restart file. Before proceeding, check that the error fields exist using &amp;lt;code&amp;gt;grep -a &amp;quot; : &amp;lt;&amp;quot; restart.&amp;lt;#&amp;gt;.1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1400</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1400"/>
				<updated>2021-04-28T19:11:20Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometries created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]].&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1399</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1399"/>
				<updated>2021-04-28T19:10:10Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* File Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]].&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that may need to be changed or are not used at all.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1398</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1398"/>
				<updated>2021-04-28T19:09:19Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; using the template [[#Adapt.inp_(non-adaptation_step) | Adapt.inp (non-adaptation step)]].&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that are not used.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1397</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1397"/>
				<updated>2021-04-28T19:07:36Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* File Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
The file examples below are what were used for this specific example and may contain parameter flags that are not used.&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eviscScal 0&lt;br /&gt;
pgrad 0&lt;br /&gt;
ub 1.45&lt;br /&gt;
lb 0.70&lt;br /&gt;
numSplit 5&lt;br /&gt;
sizeRatio 0.35 # confirmed that 0.25 does a 4x ref&lt;br /&gt;
numSmooth  0  #confirmed that this gets used  &lt;br /&gt;
ratioThresh 0.75   #  this is h_new/h_orig from isotropic days&lt;br /&gt;
localAdapt 1    # makes setLocal force adaptivity only around nodes set size&lt;br /&gt;
AnisoSimmetrix 4 # &amp;gt; 0 use Simmetrix, else ours 1 does largest length reduction by sizeRatio, 2 does both does medium and largest reduction by sizeRatio&lt;br /&gt;
coarsenMode 0 # disables coarsening see coarsenMode docs for 1, and 2&lt;br /&gt;
numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName  geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 1 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.5e-4&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 1e6&lt;br /&gt;
hmin 1e-5&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 0&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 1&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 0&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1396</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1396"/>
				<updated>2021-04-28T19:03:01Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Notes on Folder Structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== File Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (non-adaptation step) ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;numberSolutionVars 6&lt;br /&gt;
numberErrorVars 10 &lt;br /&gt;
refWeights 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0&lt;br /&gt;
refThreshold 0.01&lt;br /&gt;
globalP 1&lt;br /&gt;
timeStepNumber 1 &lt;br /&gt;
numelX 0&lt;br /&gt;
NSFTAG -1&lt;br /&gt;
ensa_dof 6&lt;br /&gt;
attributeFileName geom.smd&lt;br /&gt;
meshFileName geom.sms&lt;br /&gt;
modelFileName geom_nat.x_t&lt;br /&gt;
Idirection 0&lt;br /&gt;
BYPASS 0&lt;br /&gt;
zScale 0&lt;br /&gt;
adaptFlag 0 &lt;br /&gt;
errorName 0&lt;br /&gt;
SONFATH 0&lt;br /&gt;
lStart 0&lt;br /&gt;
rRead 6&lt;br /&gt;
rStart 0 &lt;br /&gt;
AdaptStrategy 5&lt;br /&gt;
AdaptFactor 0.00001&lt;br /&gt;
AdaptOption 11&lt;br /&gt;
hmax 0.04&lt;br /&gt;
hmin 0.000052083&lt;br /&gt;
multipleRestarts 0&lt;br /&gt;
Periodic 0&lt;br /&gt;
prCD 0&lt;br /&gt;
timing 0&lt;br /&gt;
wGraph 0&lt;br /&gt;
phastaVersion 1.9.5&lt;br /&gt;
old_format 0&lt;br /&gt;
FortFormFlag 0&lt;br /&gt;
outputFormat binary&lt;br /&gt;
CUBES 0&lt;br /&gt;
internalBCNodes 0&lt;br /&gt;
version UNKNOWN&lt;br /&gt;
WRITEASC 0&lt;br /&gt;
phastaIO 1&lt;br /&gt;
numTotParts 1&lt;br /&gt;
SolutionMigration 0&lt;br /&gt;
DisplacementMigration 0&lt;br /&gt;
isReorder 0 &lt;br /&gt;
isMCOPI 0&lt;br /&gt;
isBLAdapt 0&lt;br /&gt;
isThickAdapt 0&lt;br /&gt;
isSizeLimit 1&lt;br /&gt;
MaxLimitFact 2&lt;br /&gt;
MinLimitFact 2&lt;br /&gt;
rho 1.225&lt;br /&gt;
mu 1.7825e-5&lt;br /&gt;
dwalMigration 0&lt;br /&gt;
buildMapping 1 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adapt.inp (adaptation step) ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1395</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1395"/>
				<updated>2021-04-28T19:00:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]].&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1394</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1394"/>
				<updated>2021-04-28T18:59:19Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint |Removal of Extrusion Constraint]]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1393</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1393"/>
				<updated>2021-04-28T18:58:43Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint Removal of Extrusion Constraint]]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1392</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1392"/>
				<updated>2021-04-28T18:58:19Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [[#Removal_of_Extrusion_Constraint name|Removal of Extrusion Constraint]]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1391</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1391"/>
				<updated>2021-04-28T18:55:24Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* = Creating Initial Restart and Error Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt-Simmetrix&amp;amp;section=Removal_of_Extrusion_Constraint Removal of Extrusion Constraint]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ===&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1390</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1390"/>
				<updated>2021-04-28T18:55:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt-Simmetrix&amp;amp;section=Removal_of_Extrusion_Constraint Removal of Extrusion Constraint]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
** Adaptation using 6th entry of errors field&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adaptation Process ==&lt;br /&gt;
&lt;br /&gt;
=== Creating Initial Restart and Error Files ==&lt;br /&gt;
Beginning inside of the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir 1-1-phParAdapt&lt;br /&gt;
cd 1-1-phParAdapt &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create soft links to the geom files above the 1-1-Chef directory,&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;ln -s ../../geom.smd&lt;br /&gt;
ln -s ../../geom.sms&lt;br /&gt;
ln -s ../../geom_nat.x_t &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create an &amp;lt;code&amp;gt; adapt.inp &amp;lt;/code&amp;gt; file similar&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1389</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1389"/>
				<updated>2021-04-28T18:41:57Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Notes on Folder Structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt-Simmetrix&amp;amp;section=Removal_of_Extrusion_Constraint Removal of Extrusion Constraint]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;     ( step number directory )&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case ( restart files with adapted mesh )&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1388</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1388"/>
				<updated>2021-04-28T18:36:29Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Notes on Folder Structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt-Simmetrix&amp;amp;section=Removal_of_Extrusion_Constraint Removal of Extrusion Constraint]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
#### geombc.dat.1&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
### mesh_parts.sms&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
#### restart.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### errors.&amp;lt;#&amp;gt;.1&lt;br /&gt;
#### [geom.smd, geom.sms, geom_nat.x_t, parts.sms]&lt;br /&gt;
#### adapt.inp&lt;br /&gt;
#### &amp;lt;#&amp;gt;       &amp;lt;- step number directory&lt;br /&gt;
##### mesh_parts.sms&lt;br /&gt;
##### 1-1-phParAdapt&lt;br /&gt;
###### [geom.smd, geom.sms, geom_nat.x_t]&lt;br /&gt;
###### adapt.inp&lt;br /&gt;
###### 1-procs_case    &amp;lt;- restart files with adapted mesh&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1387</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1387"/>
				<updated>2021-04-28T18:26:58Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt-Simmetrix&amp;amp;section=Removal_of_Extrusion_Constraint Removal of Extrusion Constraint]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
&lt;br /&gt;
== Notes on Folder Structure ==&lt;br /&gt;
Below is an overview of the folder structure to reference during the adaptation process:&lt;br /&gt;
# [ geom.smd, geom.sms, geom_nat.x_t ] &lt;br /&gt;
# 1-1-Chef&lt;br /&gt;
## 1-procs_case&lt;br /&gt;
## 1-1-phParAdapt&lt;br /&gt;
### adapt.inp&lt;br /&gt;
### run_phParAdapt.sh&lt;br /&gt;
### 1-procs_case&lt;br /&gt;
### A1-phParAdapt&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1386</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1386"/>
				<updated>2021-04-28T18:18:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt-Simmetrix&amp;amp;section=Removal_of_Extrusion_Constraint Removal of Extrusion Constraint]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	<entry>
		<id>https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1385</id>
		<title>PhParAdapt/Simmetrix</title>
		<link rel="alternate" type="text/html" href="https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt/Simmetrix&amp;diff=1385"/>
				<updated>2021-04-28T18:18:22Z</updated>
		
		<summary type="html">&lt;p&gt;Jopo9795: /* Initial Notes to User */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following page provides details for performing mesh adaptation using the PhParAdapt tool with Simmetrix routines. &lt;br /&gt;
&lt;br /&gt;
== Initial Notes to User ==&lt;br /&gt;
* The solution migration feature is currently broken and thus requires other means for transferring the solution to new meshes that are created from PhParAdapt (e.g. solution interpolation in Paraview)&lt;br /&gt;
* To date, the steps described herein have only been tried with the following restrictions:&lt;br /&gt;
** Tetrahedral elements&lt;br /&gt;
*** Extruded element types apparently can be used but require removal of any extrusion constraints in the mesh. Below are some incomplete details regarding that process for reference. See  [https://fluid.colorado.edu/wiki/index.php?title=PhParAdapt-Simmetrix&amp;amp;section=Removal_of_Extrusion_Constraint this Removal of Extrusion Constraint]&lt;br /&gt;
** Serial case&lt;br /&gt;
** Geometry created using SimModeler7.0-190626&lt;br /&gt;
&lt;br /&gt;
== Removal of Extrusion Constraint ==&lt;br /&gt;
Riccardo has used a procedure in the past to remove the extrusion constraint from a mesh that enabled adaptation to be performed on extrusion-type elements. &lt;br /&gt;
&lt;br /&gt;
The following directory contains an example of this process:&lt;br /&gt;
&amp;lt;code&amp;gt; /projects/tools/Models/NASAWingBodyJunction/RajMeshFine/Mesh/1-1-phParAdapt/RemExtrusion/ &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The executable that is called for removal of the constraint is a part of SCOREC-core, found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/build/dir&amp;gt;/test/rm_extrusion &amp;lt;/code&amp;gt; and the source code, in case edits are required, is found at &amp;lt;code&amp;gt; &amp;lt;path/to/SCOREC-core/source/dir&amp;gt;/core/test/rm_extrusion.cc &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jopo9795</name></author>	</entry>

	</feed>