| ||
| Real T_term = _Mq[_qp]*(- _c[_qp]*_c[_qp] + _c[_qp]) / ( _T[_qp] ); | ||
| return T_term * _grad_T[_qp] * _grad_test[_i][_qp]; | ||
| } | ||
| Real | ||
| MultiSoretDiffusion::computeQpJacobian() | ||
| { | ||
| if (_c_var == _var.number()) //Requires c jacobian | ||
| return computeQpCJacobian(); | ||
| return 0.0; | ||
| } | ||
| Real | ||
| MultiSoretDiffusion::computeQpOffDiagJacobian(unsigned int jvar) | ||
| { | ||
| if (_c_var == jvar) //Requires c jacobian | ||
| return computeQpCJacobian(); | ||
| else if (_T_var == jvar) //Requires T jacobian | ||
| //return _D[_qp] * _Q[_qp] * _c[_qp] * _grad_test[_i][_qp] * | ||
| //(_grad_phi[_j][_qp]/(_kb * _T[_qp] * _T[_qp]) - 2.0 * _grad_T[_qp] * _phi[_j][_qp] / (_kb * _T[_qp] * _T[_qp] * _T[_qp])); | ||
| return _Mq[_qp] * _c[_qp]* (1.0 - _c[_qp])* _grad_test[_i][_qp] * | ||
| (_grad_phi[_j][_qp]/(_T[_qp]) - _grad_T[_qp] * _phi[_j][_qp]/(_T[_qp] * _T[_qp])); | ||
| return 0.0; | ||
| } | ||
| Real | ||
| MultiSoretDiffusion::computeQpCJacobian() | ||
| { | ||
| //Calculate the Jacobian for the c variable | ||
| //return _D[_qp] * _Q[_qp] * _phi[_j][_qp] * _grad_T[_qp] / (_kb * _T[_qp] * _T[_qp]) * _grad_test[_i][_qp]; | ||
| return _Mq[_qp]*_grad_test[_i][_qp]*(_grad_T[_qp]/_T[_qp]- 2.0 *_phi[_j][_qp]*_grad_T[_qp]/_T[_qp]); | ||
| } | ||
| return _Mq[_qp] * _c[_qp]* (1.0 - _c[_qp])* _grad_test[_i][_qp] * (_grad_phi[_j][_qp]/(_T[_qp]) - _grad_T[_qp] * _phi[_j][_qp]/(_T[_qp] * _T[_qp])); | |
--
You received this message because you are subscribed to the Google Groups "moose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/be0a20d1-8754-4209-a92e-8f771a7be3aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "moose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moose-users/mHHA6NDHkGk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moose-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/CAFfxPjqVtTVaoGfUrx5KDStntzNCPuKTxYDzz9FM%3D%3DfCh76dZg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/moose-users/be0a20d1-8754-4209-a92e-8f771a7be3aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "moose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/moose-users/mHHA6NDHkGk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to moose-users+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/moose-users.